Is there such a thing as a terminal multiplexer (i.e. GNU Screen) for the Windows CMD.EXE, or for that matter, is there anything I can use to run a text-only program such as a non-curses python script on Windows XP or Vista in such a way that it can only be detected by using Task Manager, similar programs, or by observing any network traffic that the script generates?

  • For python scripts, at least, you can rename *.py to *.pyw to prevent it from opening up a window, perfect for daemons and scheduling things to run, and such. – Phoshi Jun 19 '10 at 12:07
  • Just for your information, the particular python script I am using is supposed to start immediately when the computer starts (in Startup, and as ATTRIB +R+H, of course), and it runs constantly until the computer shuts down. – mmirate Jun 19 '10 at 12:18
  • I do something similar for a scheduler I wrote, *.pyw works perfectly. Have to log to a file, though. – Phoshi Jun 19 '10 at 14:18

More general purpose, you can install Cygwin and enjoy the actual screen tool:

enter image description here

  • 9
    That's quite a screenshot -- a version of Firefox back when it was called Phoenix (sometime between Sept. 2001 and April 2003 (source). Equally dated Yahoo home page. – Doug Harris Mar 12 '12 at 17:18
  • @DougHarris: Nevertheless, a very valid answer. – Jinxed Oct 20 '17 at 15:05

I used a *.pyw with a shortcut pointing to it and the required command-line arguments. It now runs just perfectly and with no console window.

  • Happy to have been of assistance! – Phoshi Jun 19 '10 at 16:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.