Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting rid of the cmd window 1

Status
Not open for further replies.

Edge118

Programmer
Jun 15, 2004
104
US
Hi,

I am using:
Code:
system("start $command") and die $!,$?,$^E;

This code opens up a separate command screen from the main process and runs independent of it. I have this code in a loop so there are about 4 cmd screens open at once. The question I have is: Is there a way to make it so the cmd screens don't pop up and instead are invisible and exit after the command is completed?

Thanks.
 
I take it you are using windows?

___________________________________
[morse]--... ...--[/morse], Eric.
 
Are you running the main process from a command window or a Perl/Tk widget? Anyways I have used "wPerl" with Perl/Tk to eliminate the command window for the main process. The "wPerl" file is available in ActiveState Perl package. To use it, just associate the shortcut for your Perl/Tk application with "wperl.exe" instead of "perl.exe".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top