?
本文檔使用 PHP中文網(wǎng)手冊 發(fā)布
DriveExists 方法返回指示指定的驅(qū)動器是否存在的布爾值。如果驅(qū)動器存在則返回 True ,否則返回 False。
FileSystemObject.DriveExists(drive)
參數(shù) | 描述 |
---|---|
drive | 必需的。驅(qū)動器字母或者完整的路徑規(guī)定。 |
<%
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
%>