in reply to running exe from perl (again)

starts a command prompt .exe

It depends on what you mean by that. ww assumed you meant a console program, but maybe you do mean a command prompt, like cmd.exe. The trick is the cmd.exe 'start' command, which creates a new console window, otherwise it will use the parent window. This is based on one I use:
use warnings; use strict ; my $temp = '"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bi +n\vcvars32.bat"'; my $cmd = "start $ENV{comspec} /k $temp"; if (system ($cmd)) { warn 'command failed with '.$? >> 8; }

Replies are listed 'Best First'.
Re^2: running exe from perl (again)
by Anonymous Monk on Oct 18, 2009 at 05:04 UTC