Austin wrote: >>> 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 >> > Hi, but my program is complied from py2exe. > All extension is 'pyd'. > Hm... is there any way to do?
no time to test, but the "subprocess" module might be what you need: http://www.python.org/dev/doc/devel/lib/module-subprocess.html http://www.effbot.org/downloads/#subprocess (for 2.2 and 2.3) (I assume you're already using the "windows" py2exe option for your own program) </F> -- http://mail.python.org/mailman/listinfo/python-list