in reply to Re: Shelling a new process with console I/O in Windows
in thread Shelling a new process with console I/O in Windows

change " + CREATE_NEW_CONSOLE" to " | CREATE_NEW_CONSOLE", it should work fine.
That really shoudn't make any difference. The result would only be different if there were some bits in common between the two constants being added/orred.

However, there couldn't be any bits in common, because otherwise the function being called couldn't work out a specific meaning for a bit being set.

That aside, good call on using system() :-)

--
use JAPH;
print JAPH::asString();

  • Comment on Re^2: Shelling a new process with console I/O in Windows

Replies are listed 'Best First'.
Re^3: Shelling a new process with console I/O in Windows
by furry_marmot (Pilgrim) on Mar 19, 2009 at 20:45 UTC
    It shouldn't make a difference, but it does. The first way doesn't work. Windows documentation says to use the pipe character, so I just always do.

    Anyway, thanks!