os.system

A

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?
 
T

Thomas Guettler

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
 
A

Austin

My code is " os.system("NET SEND computer hihi") "
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,241
Messages
2,571,223
Members
47,856
Latest member
mmorais

Latest Threads

Top