Watch on File System using FileSystemWatcher
<p>I use <code>FileSystemWatcher</code> for watch on File System. it can watch on particular folder or drive.</p>

<p>But I want it on whole file system means it should watch on all drive.</p>

<p>Any idea about this ?</p>

<p>I do that much.</p>

<pre><code>public static void Run()
{
     string[] args = System.Environment.GetCommandLineArgs();

     if (args.Length &lt; 2)
     {
          Console.WriteLine("Usage: Watcher.exe PATH [...] [PATH]");
          return;
     }
     List&lt;string&gt; list = new List&lt;string&gt;();
     for (int i = 1; i &lt; args.Length; i++)
     {
          list.Add(args[i]);
     }

     foreach (string my_path in list)
     {
          WatchFile(my_path);
     }

     Console.WriteLine("Press \'q\' to quit the sample.");
     while (Console.Read() != 'q') ;
}
private static void WatchFile(string watch_folder)
{
    watcher.Path = watch_folder;

    watcher.NotifyFilter = NotifyFilters.LastWrite;
    watcher.Filter = "*.xml";
    watcher.Changed += new FileSystemEventHandler(convert);
    watcher.EnableRaisingEvents = true;
}
</code></pre>

<p>using <a href="http://stackoverflow.com/questions/15635477/filesystem-watcher-multiple-folders">Filesystem Watcher - Multiple folders</a></p>
