?
Dokumen ini menggunakan Manual laman web PHP Cina Lepaskan
GetDrive 方法返回由 drivespec 參數(shù)規(guī)定的 Drive 對象。
FileSystemObject.GetDrive(drivespec)
參數(shù) | 描述 |
---|---|
drivespec | 必需的??梢允球寗悠髯帜?c),或者帶有冒號的驅動器字母(c:),或者帶有冒號和路徑分隔符的驅動器字母(c:\),或者任何網(wǎng)絡共享規(guī)范(\\computer2\share1)。 |
<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:\")
set fs=nothing
%>