title: File already exists exception file.copy
body: <p>I am trying to copy a driver file from my application folder to driver folder in windows 7. But as I run this program File already exists exception has been occurred if I check at driver folder manually the file does not exists at all.</p>
  
  <pre><code>Program.sDriverPath = Path.Combine(Program.sStartUpPath, @"windows7\amd64\MyDriver.sys");
  string sPath = sDriverPath;
  string sDestPath = Path.Combine(Environment.ExpandEnvironmentVariables(@"%windir%\system32"), @"drivers\MyDriver.sys");
  MessageBox.Show("Source " + sDriverPath);
  File.Copy(sDriverPath, sDestPath);
  </code></pre>