Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript FileSystemObject Object DriveExists Method

Returns True if the specified drive exists; False if it does not.

Syntax: VBScript FileSystemObject Object DriveExists Method

object.DriveExists(drivespec)

Arguments: VBScript FileSystemObject Object DriveExists Method

object

The name of a FileSystemObject. Required.

drivespec

A drive letter or a complete path specification. Required.

Remarks: VBScript FileSystemObject Object DriveExists Method

For drives with removable media, the DriveExists method returns True even if there are no media present. Use the VBScript Drive Object IsReady Property of the Drive object to determine if a drive is ready.

On UNIX systems the only valid drive name is "/".

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.