Here's an incomplete idea that may or may not be helpful...

There might be some fancy Windows API tricks for interacting with other console 
windows, but then your code would be more difficult to port. I would first 
consider the simplest solution: startProcess start / cmd with [the needed 
switches](http://stackoverflow.com/questions/11615455/python-start-new-command-prompt-on-windows-and-wait-for-it-finish-exit),
 command, and the rest of the args. It is common for an exe to fork a copy of 
itself with special args, and communicate via a portable IPC library 
([nanomsg?](https://github.com/def-/nim-nanomsg)). Then the only thing 
Windows-dependent is how the visible console window is launched, for which 
there are one-line equivalents on other GUI platforms (ex. xterm / 
gnome-terminal, open -a Terminal on Mac, etc).

Reply via email to