Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

How to hide the command prompt open duing the execution of system command?

by isha (Sexton)
on Oct 20, 2007 at 07:59 UTC ( [id://646152]=perlquestion: print w/replies, xml ) Need Help??

isha has asked for the wisdom of the Perl Monks concerning the following question:

I am using Windows XP and Perl V5.8.8 220. I have a script which is using a Tk module and based on the state of the checkbox it opens the Outlook Express using system command. I have converted this .pl script to an exe using PAR module. Now when the checkbox is checked ans the open button is clicked it should open the Outlook express. Rather than doing this is also opens a command prompt before opening the Outlook Express. Can anyone please tell how can i stop the command prompt to be displayed on the screen?
  • Comment on How to hide the command prompt open duing the execution of system command?

Replies are listed 'Best First'.
Re: How to hide the command prompt open duing the execution of system command?
by erroneousBollock (Curate) on Oct 20, 2007 at 08:16 UTC
    The PAR-Packager documentation says to add the -g switch to your command line.

    Update: Oh, I see... the cmd window is coming from the system command in your (compiled) perl script.

    Use Win32::Process::Create().

    -David

Re: How to hide the command prompt open duing the execution of system command?
by rminner (Chaplain) on Oct 20, 2007 at 08:48 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://646152]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-19 18:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found