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?
pause at the end of the batch script should keep it open until you press any key to continue.
Put cmd /k on the very last line of the script.
protected by Community♦ Apr 25 '18 at 12:20
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?