View Single Post
Old Jul 22nd, 2006, 3:34 AM   #7
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
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.
bigguy is offline   Reply With Quote