ASP GetDriveMethod


FileSystemObject 对象参考手册Complete FileSystemObject Object Reference Manual

The GetDrive method returns a Drive object specified by the drivespec parameter.

Syntax

FileSystemObject.GetDrive(drivespec)

Parameters Description
drivespec Required. Can be a drive letter (c), a drive letter with a colon (c:), a drive letter with a colon and path separator (c:\), or any network share specification (\\computer2\share1).

Example

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


FileSystemObject 对象参考手册Complete FileSystemObject Object Reference Manual Other Extensions