run command line on Windows without showing DOS console window
Laurent Pointal
laurent.pointal at free.fr
Wed Nov 20 16:35:11 EST 2013
Tim Golden wrote:
> 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"])
Complement: use .pyw extension for your main Python module (avoid Python
opening a console).
A+
--
Laurent POINTAL - laurent.pointal at laposte.net
More information about the Python-list
mailing list