VB Code:
Public Function fc_VerifyDirectory(ByVal sDirectory As String) As Boolean
sDirectory = sDirectory.Trim
If sDirectory = "" Then
fc_VerifyDirectory = False
Else
Try
If Dir(sDirectory, FileAttribute.Directory) > "" Then fc_VerifyDirectory = True
Catch
fc_VerifyDirectory = False
End Try
End If
End Function
It's a basic function to check if a directory exists. Give it a shot. Place a floppy in the drive, and call the function passing in "A:\". You'll get back False. Try it again with "C:\" and it returns True.