title: How to modify IIS permissions to run batch scripts in PHP?
body: <p>I am trying to have a PHP file call a Windows batch script using</p>
  
  <p><code>exec("runPy.bat");</code></p>
  
  <p>I have also tried</p>
  
  <p><code>exec("cmd /c \\server\somePath\runPy.bat");</code></p>
  
  <p>It doesn't matter what I try, the batch script doesn't work. And I don't get any errors. After much research I found a post saying that the problem may be due to privaleges: <a href="https://stackoverflow.com/a/11613662">https://stackoverflow.com/a/11613662</a></p>
  
  <p>Can anyone show me safe/proper way to set up permissions so that I can call batch scripts in IIS? Or is it unsafe in general to do that? Using IIS8 if that helps.</p>