+ 2

Switch Command Prompt

I can need to open cmd, type in a Command, and do that with a python script. It would be a huge bonus if I could run it from Command Prompt too.

8th Sep 2018, 10:34 PM
Carson
Carson - avatar
5 Réponses
+ 1
import os os.system("start cmd /c {command here}")
9th Sep 2018, 1:53 AM
Ruben Rodriguez
Ruben Rodriguez - avatar
0
does that work from cmd ?
9th Sep 2018, 2:37 AM
Carson
Carson - avatar
0
what directory is it set to, as it is not working.
9th Sep 2018, 2:44 AM
Carson
Carson - avatar
0
any other solutions ?
9th Sep 2018, 2:45 AM
Carson
Carson - avatar
0
Why the coding learned here is not running on the python 3.10 cmd prompt?
4th Feb 2022, 2:55 PM
Himanshu Kumar Singh