|
Yeha I'm the guy booze done that for. What I'd do is use DriveInfo I think it goes soemthign like this
Imports System.IO
Public Class Form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles Timer1.Tick
Dim di As DriveInfo = DriveInfo.GetDrives
If di.IsReady Then
(yourcodehere)
End if
End Sub
End Class
What that will do, is check if your drive is ready. It will automaticlaly do it for HDD's because they are always ready. But Like Floppy drives and CD drives arent ready unless something is in them. But thats what I'd use I'm sure there is other ways.
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain
Destruction leads to a very rough road, but it also breeds creation.
|