Nele Kosog wrote:
Hi,
I have compiled an executable using the following command:
"pp -x --gui -o my_program.exe my_program.pl"
While --gui blocks the console window for the main application, it does
not seem to prevent other console windows from opening.
my_program.pl uses two command line tools to calculate something. When I
run the pp'ed executable, the my_program.exe opens a new console window
for each call to one of the command line tools.
Are there means to prevent this? I have searched for this option, but
only find the --gui switch description.
Thank you for your help!
Regards,
Nele
This also works and basically calls the same win32 process api and is
part of win32::gui
wperl -MWin32::GUI -e 'Win32::GUI::ShellExecute(0, "open", "sleep",
"10s", "", 0);Win32::GUI::MessageBox("hello world")'
If you need the output of the cmdline tool then redirect into a tmp file
and then open it as a file.
--
Bob
Bob Davis | Infor |Office: 603.334.5060 | robert.da...@infor.com | cell:
603-479-4358 | home: 603-778-0781 | skype: rsdavis9