Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
For some reason I cannot open the cmd. I created a simple bat file that does dir but it immediately closes the cmd as well. Is there a way I can keep the cmd open with some command?
Adding pause at the end of the batch script should keep it open until you press any key to continue.
start cmd /K dir
Put cmd /k on the very last line of the script.