?
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
GetDrive 方法返回由 drivespec 參數(shù)規(guī)定的 Drive 對象。
FileSystemObject.GetDrive(drivespec)
參數(shù) | 描述 |
---|---|
drivespec | 必需的??梢允球?qū)動器字母(c),或者帶有冒號的驅(qū)動器字母(c:),或者帶有冒號和路徑分隔符的驅(qū)動器字母(c:\),或者任何網(wǎng)絡共享規(guī)范(\\computer2\share1)。 |
<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:\")
set fs=nothing
%>