How in the bat file to make so that after the execution of the bat file is not closed?

1 answer 1

You can put something from this in the last line:

pause 
 cmd 

Or run like this:

 cmd /k smth.bat 

or even so (if he sometimes does exit ):

 cmd /k cmd /c smth.bat 
  • problem: it writes To continue, press any key. . . - LGPvS
  • And what does not suit? - Qwertiy
  • one
    @LGPvS if you need to get rid of the message about the key, pause> nul - MSDN.WhiteKnight
  • it closes anyway - LGPvS