View Single Post
Old Nov 6th, 2006, 9:21 PM   #1
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
FileSystemWatcher has multiple paths

Hello all, long time no see. I have a question. I am making a program that uses a FileSystemWatcher. Problem is I need it to watch for than one path or drive. Say someone has two HDD', and they want to watch both of them for activty. How I do that? This is what I got thus far, and it aint working.

Private Sub btnfolder_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnfolder.Click
        watcher.Path = lstdrives.CheckedItems.ToString
    End Sub

What am I doing wrong? Please help.
__________________
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