Right-click on the batch file and select Edit.The Pause command prevents the Command Prompt from closing after processing the batch file. 1] Prevent Command Prompt from closing immediately by using the Pause command ![]() You can prevent or stop Command Prompt from closing immediately after opening or executing a batch file in the following three ways: If you want the Command prompt window to remain open after processing the batch file, this post may help you.Ĭommand prompt closes immediately after opening batch file ![]() This prevents users from performing other tasks after the execution of the batch file or viewing the status of the commands they executed in the CMD. Sometimes, the command is executed so quickly that it seems like the Command Prompt closes immediately after opening the batch (BAT) file. When we execute a batch file, the Command Prompt opens and closes automatically after processing the batch file.
0 Comments
Leave a Reply. |