tutamodern.blogg.se

Keep cmd window open
Keep cmd window open











keep cmd window open keep cmd window open

  • Finds it a little bit uncomfortable to run cmd.exe all the time and doesn't have the time/opportunity to rewrite the code of these commands everywhere to put a pause after them or avoid exiting explicitly.
  • when running a shortcut from Start menu (or from somewhere else), OR
  • Runs the program the first time and doesn't know that the given program will run in Command Prompt (Windows Command Processor) e.g.
  • Running these programs with cmd /k like this: cmd /k myprogram.batīut there are some other cases in which the user:.
  • with net start xy or anything similar) within cmd.exe(Start - Run - cmd.exe)
  • Running these batch files or other command line manipulating tools (even service starting, restarting, etc.
  • Putting a pause line after batch programs to prompt the user to press a key before exiting.
  • Normally, this behavior can be avoided with three methods that come to my mind: To solve this, I want the default behavior to be that the window is kept open. My problem is that in Windows, there are command line windows that close immediately after execution.













    Keep cmd window open