ASP GetDriveメソッド


FileSystemObject 对象参考手册FileSystemObject オブジェクトの完全なリファレンスマニュアル

GetDrive メソッドは、drivespec パラメータで指定された Drive オブジェクトを返します。

構文

FileSystemObject.GetDrive(drivespec)

パラメータ 説明
drivespec 必須です。ドライブ文字(c)、コロン付きのドライブ文字(c:)、コロンとパス区切り文字付きのドライブ文字(c:\)、または任意のネットワーク共有指定(\\computer2\share1)のいずれかです。

例

<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:\")
set fs=nothing
%>


FileSystemObject 对象参考手册FileSystemObject オブジェクトの完全なリファレンスマニュアル その他の拡張