Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #60081 > unrolled thread
| Started by | iMath <redstone-cold@163.com> |
|---|---|
| First post | 2013-11-20 06:44 -0800 |
| Last post | 2013-11-23 08:13 -0800 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.python
run command line on Windows without showing DOS console window iMath <redstone-cold@163.com> - 2013-11-20 06:44 -0800
Re: run command line on Windows without showing DOS console window Tim Golden <mail@timgolden.me.uk> - 2013-11-20 14:49 +0000
Re: run command line on Windows without showing DOS console window Laurent Pointal <laurent.pointal@free.fr> - 2013-11-20 22:35 +0100
Re: run command line on Windows without showing DOS console window iMath <redstone-cold@163.com> - 2013-11-23 08:13 -0800
| From | iMath <redstone-cold@163.com> |
|---|---|
| Date | 2013-11-20 06:44 -0800 |
| Subject | run command line on Windows without showing DOS console window |
| Message-ID | <050a03b7-bd56-4c6f-a6e6-e9867b08d0d5@googlegroups.com> |
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
[toc] | [next] | [standalone]
| From | Tim Golden <mail@timgolden.me.uk> |
|---|---|
| Date | 2013-11-20 14:49 +0000 |
| Message-ID | <mailman.2964.1384958994.18130.python-list@python.org> |
| In reply to | #60081 |
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
[toc] | [prev] | [next] | [standalone]
| From | Laurent Pointal <laurent.pointal@free.fr> |
|---|---|
| Date | 2013-11-20 22:35 +0100 |
| Message-ID | <528d2b0f$0$2321$426a34cc@news.free.fr> |
| In reply to | #60083 |
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@laposte.net
[toc] | [prev] | [next] | [standalone]
| From | iMath <redstone-cold@163.com> |
|---|---|
| Date | 2013-11-23 08:13 -0800 |
| Message-ID | <297c51a3-3155-4237-934f-b8f2c91a3e8a@googlegroups.com> |
| In reply to | #60083 |
在 2013年11月20日星期三UTC+8下午10时49分50秒,Tim Golden写道: > 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 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 ?
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web