I am getting the following error:
WindowsError: [Error 2] The system cannot find the file specified
My code is:
subprocess.
If you are using powershell, then in it will be subprocess.call(['powershell','-command','dir']). Powershell supports a large portion of POSIX commands
subprocess.call(['powershell','-command','dir'])