title: PermissionError: [WinError 5] Access denied
body: <p>I am trying to call a python program with <code>subprocess</code>, but I get a permission error. I tried running PyCharm as an admin, but it doesn't help.</p>
  
  <p>My code:</p>
  
  <pre><code>answer = subprocess.check_output("../folder python program %s %s" %(valueA, valueB), encoding = 'utf8')
  </code></pre>
  
  <p>The error:</p>
  
  <pre class="lang-none prettyprint-override"><code>Traceback (most recent call last):
    File "C:/Users/User/PycharmProjects/a/b/b_resolution.py", line 35, in &lt;module&gt;
      answer = subprocess.check_output("../folder python program %s %s" %(valueA, valueB), encoding = 'utf8')
    File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\Lib\subprocess.py", line 376, in check_output
      **kwargs).stdout
    File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\Lib\subprocess.py", line 453, in run
      with Popen(*popenargs, **kwargs) as process:
    File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\Lib\subprocess.py", line 756, in __init__
      restore_signals, start_new_session)
    File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\Lib\subprocess.py", line 1155, in _execute_child
      startupinfo)
  PermissionError: [WinError 5] Access Denied
  </code></pre>
  
  <p>Does someone know how I can fix this permission error?</p>