..


Sponsored Links

DriveExists

The method of the FileSystemObject object DriveExists returns a Boolean value that indicates whether a specified drive, or there or not. It returns True if the drive is existing, false if none exists.
This method accepts a single parameter that is the drive letter or the full path. Here's an example:






 Dim fs







 'I create an instance of the FileSystemObject

 





 Set fs = Server.CreateObject ("Scripting.FileSystemObject")









 'Check that the drive exists







 If fs.DriveExists ("c") = True Then



  



 Response.Write ("The c: drive there!")







 Else



  



 Response.Write ("The c: drive does not exist!")







 End If









 'I cleaned







 Set fs = Nothing



In the same category ...
E-Learning
ASP (Advanced) ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €.
ASP Zero (Ebook) ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €.
ASP and Access (Ebook) ASP and Access (Ebook)
Managing a MS Access database with ASP. At only 29 €.
Sponsored Links