ASP GetDrive Method
Definition and Usage
The GetDrive method returns a Drive object specified by the drivespec parameter.
Syntax:
FileSystemObject.GetDrive(drivespec)
Parameter | Description |
---|---|
drivespec | Mandatory. It can be a drive letter (c), or a drive letter with a colon, or a drive letter with a colon and a path separator, 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 %>