title: My Documents Path Re-directing to OneDrive Path
body: <p>I'll Start with the very simple code</p>
  
  <pre><code>
  
      string fileName; // filename of file            
  
      // get the filename
      using (OpenFileDialog openFileDialog = new OpenFileDialog()) {
            openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            openFileDialog.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
            openFileDialog.FilterIndex = 1;
            openFileDialog.ShowDialog();
            fileName = openFileDialog.FileName;
      }
  
  </code></pre>
  
  <p>What i'm trying to do is use the <code>.Net OpenFileDialog.</code> and set the <code>InitialDirectory</code> to the user who is running the application's My Documents folder.</p>
  
  <p>The code sets the path of Initial Directory to: <code>C:\Users\Aaron\Documents</code>, which is the test users My Documents Directory.</p>
  
  <p>When I run the code, the <code>OpenFileDialog</code> is actually opening in directory: <code>C:\Users\Aaron\OneDrive\Documents</code>. Which is the One Drive location.</p>
  
  <p>This is happening on both my machines, but not my friends machine. </p>
  
  <p>Why is the OneDrive Documents Folder Opening when this is not the Path set to <code>OpenFIleDialog.InitialDirectory</code> ?</p>
  
  <p>EDIT: I should probably update this. The following day I ran my project again and the issue was no longer happening. I did not change my code either. It must have been a fluke scenario.</p>