Yeah, i know. Floppy drives are so 90's. But i still have a question.
Why can't i check if a floppy is in the drive? Take a look at this code: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.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
Strange?




Reply With Quote