Table of contents
TOC
Collapse the table of content
Expand the table of content

DriveExists Method

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Description Returns True if the specified drive exists; False if it does not. Syntaxobject. DriveExists(drivespec) The DriveExists method syntax has these parts:

PartDescription
objectRequired. Always the name of a FileSystemObject.
drivespecRequired. A drive letter or a path specification for the root of the drive.

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

© 2018 Microsoft