Полезная информация

Microsoft® JScript™
DriveExists Method
 Language Reference 
 Version 3 

See Also                  Applies To

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

The DriveExists method syntax has these parts:

Part Description
object Required. Always the name of a FileSystemObject.
drivespec Required. A drive letter or a complete path specification.

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.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.