Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

run command line on Windows without showing DOS console window

46 views
Skip to first unread message

iMath

unread,
Nov 20, 2013, 9:44:52 AM11/20/13
to


is there anyway to run command line on Windows without showing DOS console window ?

can you use the following command line to give a little example ?

wget -r -np -nd http://example.com/packages/

the path to wget is C:\Program Files\GnuWin32\bin\wget.exe

Tim Golden

unread,
Nov 20, 2013, 9:49:50 AM11/20/13
to pytho...@python.org
subprocess.call(["wget", "-r", "-np", "-nd", "http://example.com"])

TJG

Laurent Pointal

unread,
Nov 20, 2013, 4:35:11 PM11/20/13
to
Complement: use .pyw extension for your main Python module (avoid Python
opening a console).

A+

--
Laurent POINTAL - laurent...@laposte.net

iMath

unread,
Nov 23, 2013, 11:13:53 AM11/23/13
to
在 2013年11月20日星期三UTC+8下午10时49分50秒,Tim Golden写道:
Have you tried it ? the DOS console window still pops up?
but I found when shell=True ,the DOS console window doesn't pop up,anyone can explain why ?
0 new messages