run command line on Windows without showing DOS console window

Tim Golden mail at timgolden.me.uk
Wed Nov 20 09:49:50 EST 2013


On 20/11/2013 14:44, iMath wrote:
> 
> 
> 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



More information about the Python-list mailing list