Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Drive exists


'uses FileSystemObject (add reference to project to use)
Dim fso As New FileSystemObject

'folder exists
If fso.DriverExists( "C" ) Then
   MsgBox "Drive Exists!"
End If