Diskette in A: drive?

  • Thread starter Thread starter Phil Hellmuth
  • Start date Start date
P

Phil Hellmuth

Can I programmatically determine if there's a diskette in the A: drive?
Thanks in advance.
 
Can I programmatically determine if there's a diskette in the A: drive?
  Thanks in advance.

Hi Phil,
As i don't have a floppy drive right now, however you can try to use
DriveInfo type using with its IsReady property as follows:

'---------------------------
Imports System.IO
Dim drive As New DriveInfo("a:")
If drive.IsReady = True Then
' Then floppy is ready
Else
' Floppy is not ready
End If
'--------------------------

Hope this helps,

Onur Güzel
 
Worked great. Thanks.
Hi Phil,
As i don't have a floppy drive right now, however you can try to use
DriveInfo type using with its IsReady property as follows:

'---------------------------
Imports System.IO
Dim drive As New DriveInfo("a:")
If drive.IsReady = True Then
' Then floppy is ready
Else
' Floppy is not ready
End If
'--------------------------

Hope this helps,

Onur Güzel
 
Back
Top