Hello,

The introduction of conhost.exe in Windows 7 / Windows Server 2008 R2 is 
causing me problems.

Scripts run using wperl started from a shortcut in explorer don't 
inherit std handles which breaks qx / backticks amongst other things.

As an example, create a shortcut on the desktop with the target

C:\Perl64\bin\perl.exe -MWin32 -e"my $msg = qx( dir /W ); Win32::MsgBox( 
$msg  );"

Works as expected. Change the shortcut target form perl.exe to wperl.exe

C:\Perl64\bin\wperl.exe -MWin32 -e"my $msg = qx( dir /W ); 
Win32::MsgBox( $msg  );"

and the result is an empty message box.

I can fix this by starting a hidden console process and pinching its 
handles but wondered if anyone has a more elegant solution.

Regards

Mark

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to