FileSystemWatcher

Is there any way that I can monitor all folders on my pc using FileSystemWatcher. I have FileSystemWatcher.Path = "C:\" right now.

Answer this question

FileSystemWatcher

  • zennway

    Dim fsw As New IO.FileSystemWatcher("C:\")

    fsw.EnableRaisingEvents = True

    fsw.IncludeSubdirectories = True



  • RichLeyshon

    its working now, I was not using InludeSubdirectories

    Thanks for the help...


  • Amos Soma

    Does it not work Did you set InludeSubdirectories to true This may be the problem. I don't see in the help that it won't monitor all folders from a root folder.

  • FileSystemWatcher