ASPDriveExistsメソッド_
❮完全なFileSystemObjectオブジェクトリファレンス
DriveExistsメソッドは、指定されたドライブが存在するかどうかを示すブール値を返します。ドライブが存在する場合はTrueを返し、存在しない場合はFalseを返します。
構文
FileSystemObject.DriveExists(drive)
Parameter | Description |
---|---|
drive | Required. A drive letter or a complete path specification |
例
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.DriveExists("c:")=true then
response.write("Drive c: exists!")
else
response.write("Drive c: does not exist.")
end If
set fs=nothing
%>
❮完全なFileSystemObjectオブジェクトリファレンス