run command line on Windows without showing DOS console window

I

iMath

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
 
L

Laurent Pointal

Tim said:
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

subprocess.call(["wget", "-r", "-np", "-nd", "http://example.com"])

Complement: use .pyw extension for your main Python module (avoid Python
opening a console).

A+
 
I

iMath

在 2013å¹´11月20日星期三UTC+8下åˆ10æ—¶49分50秒,Tim Golden写é“:
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



subprocess.call(["wget", "-r", "-np", "-nd", "http://example.com"])



TJG
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,anyonecan explain why ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top