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

Fellow monks,

I have created a standalone executable using the 'pp' command of PAR::Packer in Windows. (OS:Windows Vista, active perl 5.8.8, par-packer 0.982).
I would like my application to run without any console window being opened. Therefore, I used the option
pp -g -o myprogram.exe myprogram.pl
as suggested in the pp docs.
Although the initial console window does not open indeed, later in the program, when I invoke certain windows system commmands, like netsh, a console window appears with the title netsh.exe and stays open for a couple of seconds.
Is it possible to prevent these windows from appearing?

Thanks in advance,
Athanasia

Replies are listed 'Best First'.
Re: Suppress console window in pp generated executable
by Anonymous Monk on Oct 24, 2008 at 09:57 UTC
      Thanks a million! This works fine now.

      Athanasia
Re: Suppress console window in pp generated executable
by ikegami (Patriarch) on Oct 24, 2008 at 09:11 UTC
      Hi,
      Thanks for your reply. As I mentioned in my original post, I have indeed compiled it with the -g option (that is equivalent with the --gui, or not?). The original console window (when I double click on the exe file) is successfully suppressed; however each time the app calls a system command (netsh, etc...) a console window flashes for some seconds.

      Am I having a buggy version of pp or is the system command execution the problem?

      Regards,
      Athanasia
        Sorry, I didn't realize they were the same.