in reply to WIN redirecting STDOUT and STDIN to new spawned CMD console

Do you really mean "CMD" as in cmd.exe or do you mean a new console window?

If you mean a console window, see Win32::Console, which allows you to create a (second) console window. I think it doesn't readily have methods to redirect STDIN/STDOUT there, but that should be fairly easy with tied filehandles.

Replies are listed 'Best First'.
Re^2: WIN redirecting STDOUT and STDIN to new spawned CMD console
by LanX (Saint) on Mar 28, 2023 at 13:05 UTC