The entirety of my script:
#!/bin/env python
import subprocess
p = subprocess.Popen(["/bin/bash", "-i", "-c", "C:\\xampp\\xampp_stop.exe"])
stdout, stderr = p.communicate()
This results in: WindowsError: [Error 2] The system cannot find the file specified
However, C:\xampp\xampp_stop.exe does exist
Any suggestions? I'm new to python, so I suspect it's something very, very obvious.
/bin/bash. You can Probably just callsubprocess.Popen(["C:\\xampp\\xampp_stop.exe"])- I haven't tested it though.