You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, it would be nice if IPC::System::Simple could be enhanced to respect Win32::SetChildShowWindow.
Specifically, the following should have the same behaviour (excepting error handling):
#!wperluse Win32;
Win32::SetChildShowWindow(0);
system("some command and args");
#!wperluse Win32;
use IPC::System::Simple qw(system);
Win32::SetChildShowWindow(0);
system("some command and args");
At the moment, on Win32, when run with wperl, the former works as expected, while the latter (at least with perl v5.22) creates a new console window to run the command. When run with regular perl, the behaviour is identical, perl opens a new console window, and whatever output the command has appears in that window.
From a little investigation, Win32::Process would need to be extended in some manner in order to pass in whatever flag causes CORE::system to hide the console window, and Win32::SetChildShowWindow would possibly need a matching Win32::GetChildShowWindow to be able to read back the current setting..
The text was updated successfully, but these errors were encountered:
Hi, it would be nice if IPC::System::Simple could be enhanced to respect Win32::SetChildShowWindow.
Specifically, the following should have the same behaviour (excepting error handling):
At the moment, on Win32, when run with wperl, the former works as expected, while the latter (at least with perl v5.22) creates a new console window to run the command. When run with regular perl, the behaviour is identical, perl opens a new console window, and whatever output the command has appears in that window.
From a little investigation, Win32::Process would need to be extended in some manner in order to pass in whatever flag causes CORE::system to hide the console window, and Win32::SetChildShowWindow would possibly need a matching Win32::GetChildShowWindow to be able to read back the current setting..
The text was updated successfully, but these errors were encountered: