Hello
I need too monitor all local driver so I code this
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim allDrives2() As IO.DriveInfo = IO.DriveInfo.GetDrives()
Dim dd As IO.DriveInfo
Dim N As Integer = 0
Dim T(10) As FileSystemWatcher
For Each dd In allDrives2
If dd.IsReady = True Then
T(N).Path = dd.Name
T(N).IncludeSubdirectories = True
T(N).EnableRaisingEvents = True
N = N + 1
End If
Next
End Sub
put I have error !
can someone correct it ?
Thank you