If I run Hello.pyw
import os
os.system('start hello.exe')
I get a very popup cmd. How do I run this script without cmd popup.
If I run Hello.pyw
import os
os.system('start hello.exe')
I get a very popup cmd. How do I run this script without cmd popup.
Lose start
from your command.
According to start MSDN page or start /?
:
Starts a separate window to run a specified program or command.
os.system('hello.exe')
Or if instead of hello.exe you need to run a bat/cmd file, use cmd /c
(cmd /?
for full cmd options):
os.system('cmd /c "hello.bat"')