os.system

Thomas Guettler guettli at thomas-guettler.de
Fri Jun 10 07:57:24 EDT 2005


Am Fri, 10 Jun 2005 17:10:23 +0800 schrieb Austin:

> My code is "  os.system("NET SEND computer hihi") "
> i use this funtion on Windows server 2003.
> it's ok.
> 
> But the same code running on Windows XP SP2, it shows the command window
> twice.
> How do i remove the command window?

Hi,

You can remove the command window which comes
from python if you use ".pyw" as extension.
This is not an answer why the system method
opens a second window, but maybe it helps, too.

 Thomas

-- 
Thomas Güttler, http://www.thomas-guettler.de/





More information about the Python-list mailing list