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