Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Windows': 0.02; 'subject:command': 0.09; 'anyway': 0.14; 'windows': 0.15; 'from:addr:timgolden.me.uk': 0.16; 'from:name:tim golden': 0.16; 'message-id:@timgolden.me.uk': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'subject:run': 0.16; 'tjg': 0.16; 'url:example': 0.16; 'url:packages': 0.16; 'wrote:': 0.18; 'command': 0.22; 'example': 0.22; 'header:User-Agent:1': 0.23; 'received:192.168.100': 0.24; 'header:In-Reply-To:1': 0.27; 'dos': 0.30; 'run': 0.32; 'there': 0.35; 'window': 0.38; 'to:addr:python- list': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'from:addr:mail': 0.83 Date: Wed, 20 Nov 2013 14:49:50 +0000 From: Tim Golden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: run command line on Windows without showing DOS console window References: <050a03b7-bd56-4c6f-a6e6-e9867b08d0d5@googlegroups.com> In-Reply-To: <050a03b7-bd56-4c6f-a6e6-e9867b08d0d5@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384958994 news.xs4all.nl 15886 [2001:888:2000:d::a6]:53976 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:60083 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