Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP GetDrive Method

ASP GetDrive Method


FileSystemObject Reference Complete FileSystemObject object reference manual


The GetDrive method returns the Drive object specified by the drivespec argument.

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 Reference Complete FileSystemObject object reference manual