0

Calling cmd from python script

I want to access command prompt from Python and then run a command file, but when I open the cmd from Python, it opens a VC++ cmd and not system32 cmd. Also it doesn't detects my command from the batch files.. I am using os.system() and tried with subprocess. popen() but no luck.. can you please tell me how to open administrator cmd from Python

11th Feb 2017, 7:05 AM
Aashna Singhaniya
Aashna Singhaniya - avatar
1 Réponse
+ 2
subprocess.Popen('cmd.exe')
23rd Feb 2017, 3:58 AM
Jay
Jay - avatar