title: FileSystemWatcher distorts filename
body: <p>I'm using <code>FileSystemWatcher</code> to detect <em>.docx</em> files. Files are detected when open, however the filename is always "corrupted". </p>
  
  <p>3 examples : </p>
  
  <ol>
  <li><p>If my file name is : <em>2711111.docx</em>, the file name recived in <code>FileSystemWatcher.Changed</code> is : <em>~$711111.docx</em>.</p></li>
  <li><p>For file : *2711111_1.docx* I get the filename : *~$11111_1.docx*
  I can't guess what my filename will be, so I am looking for a general solution. </p></li>
  <li><p>For file contains/starts with a letter, it doesn't happen. </p></li>
  </ol>
  
  <p>Here's my code</p>
  
  <pre><code>MyPath = String.Format(@"C:\Users\{0}\NRPortbl\ACTIVE\{1}\"", 
           Public.UserName, Public.UserName);
  
  FileSystemWatcher watcher = new FileSystemWatcher();
  if (!System.IO.Directory.Exists(MyPath))
  {
      Public.Logger.Error(
          String.Format
              ("Path of folders {0} not found", MyPath));
      System.Windows.Forms.MessageBox.Show(
          String.Format(
              "There was a problem loading {0} " + 
              "NRPortbl libraray, contact administrator", Public.UserName));
      return;
  }
  watcher.Path = MyPath;
  watcher.Filter = "*.Docx";                                                      
  watcher.IncludeSubdirectories = false;
  watcher.Changed += new FileSystemEventHandler(OnChanged);                       
  watcher.Deleted += new FileSystemEventHandler(OnDeleted);
  watcher.EnableRaisingEvents = true;  ... 
  public void OnChanged(object source, FileSystemEventArgs e)  {...}
  </code></pre>
  
  <p>Help will be much appreciated :) Thanks! </p>