Visual Basic > Code Snippets
Checks whether a drive exists
Checks whether a drive exists 'This program checks whether a drive exists Private Sub Form_Load() Dim objfso As New FileSystemObject If objfso.DriveExists("h:") Then MsgBox "The Drive Exists", vbInformation Else MsgBox "The Drive does not exist", vbInformation End If End Sub
Visual Basic Codes
ActiveX
Miscellaneous
Applications
Code Snippets
Common Dialogs
Special Effects
Database Stuff
Date Time
Files Drives
Forms
Graphics Games
Internet Stuff
Multimedia
Other
Strings
Windows