![]() This is a very easy and handy way to prevent the Command Prompt window from closing after running commands. You will see that CMD will remain open as long as you want it to stay open. Next, save the file by pressing “Ctrl+S” and close the notepad. Then paste the following command at the end of your batch file cmd /k Open the batch file in Notepad by right clicking on it and click on “Edit” from the list. #1 Prevent CMD window from closing using cmd /k command switch Choose the option that works best for you. ![]() The following are three ways to prevent the Command Prompt window from closing after running commands. #3 Permanently stop all cmd windows from closing using Windows Registry.#2 Stop CMD window from closing automatically using PAUSE command.#1 Prevent CMD window from closing using cmd /k command switch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |