title: How Delete A Windows 7 dll File (In System32 Folder) By C# Language
body: <p>Sometimes I need to delete or replace a dll file in system32 folder of windows 7.<br>
  The code below always has <code>Permission Denied Error</code> :   </p>
  
  <pre><code>            if (File.Exists(@"C:\Windows\system32\mydll.dll"))
              {
                  fileInfo.IsReadOnly = false;
                  File.Delete(@"C:\Windows\system32\mydll.dll");
              }
  </code></pre>
  
  <p>How can I bypass this error and replace a file in system32 folder?   </p>