Features
Ask DevGuru
ASP Resources
Find the Bug
Knowledge Base
Links
Tips of the Week
Tutorials
Products
dgCalendar
dgCharge New!
dgChart New!
dgFileUpload
dgReport New!
dgSort
dgTree
Site
Authoring
Coming Soon
DevGuru Resume
Link to Us
Merchandise
Sponsorships
Testimonials
What's New
Technologies
ADO 2.6
ASP
CSS2
HTML
JavaScript
Jet SQL
Transact-SQL Syntax
VBScript
WML
WMLScript
WSH
XML DOM
All Methods
FileSystemObject Object
METHOD: FileSystemObject.DriveExists
Implemented in version 2.0
object.
DriveExists
(drive)
This method lets us check if a specified drive exists. It returns a Boolean value -
True
if the drive does exist and
False
if it doesn't. Note that with removable media drives the
DriveExists
method always returns a
True
value. When accessing this type of drive, use the
IsReady
method to determine the drive's status.
Code:
<%
dim filesys
Set filesys = CreateObject("Scripting.FileSystemObject")
If filesysDriveExists(drive) Then
Response.Write("The specified drive does exist.")
End If
%>
Output:
"The specified drive does exist"
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information