title: Create Directory - Access denied
body: <p>When I try to create a new directory in Program Files for my program I'm thrown an error saying access is denied. This is the error:  <code>Additional information: Access to the path 'C:\Program Files\PointOfSales' is denied.</code> Why's this? I couldn't find any C# specific help that solved my problem. This is the code I'm using now.</p>
  
  <pre><code>if (!Directory.Exists("C:\\Program Files\\PointOfSales"))
          {
              Directory.CreateDirectory("C:\\Program Files\\PointOfSales");
          }
  </code></pre>
  
  <p>Thanks :)</p>