Subject: | how use with CREATE_NO_WINDOW and without in one script? |
how use with CREATE_NO_WINDOW and without in one script?
Workaround with win32::gui with Win32::GUI::Hide and Win32::GUI::Show
works but is not really good solution. Better solution possible?
example as attachment
Subject: | win32process.pl |
#!/usr/bin/perl
use Win32::Process qw(NORMAL_PRIORITY_CLASS CREATE_NO_WINDOW);
Win32::Process::Create($ProcessObj,
"C:\\Windows\\System32\\echo.exe",
"",
0,
NORMAL_PRIORITY_CLASS,
".");
delete $INC{'Win32/Process.pm'};#not work?
use Win32::Process qw(NORMAL_PRIORITY_CLASS CREATE_NEW_CONSOLE);# not without CREATE_NO_WINDOW ?
Win32::Process::Create($ProcessObj,
"C:\\Windows\\System32\\echo.exe",
"",
0,
NORMAL_PRIORITY_CLASS,
".");
exit;