You do not see what commands were running on the command prompt due to the batch file.
Table of Contents
The following are three ways to prevent the Command Prompt window from closing after running commands.
Choose the option that works best for you.

Double click your .bat file.
You will see that CMD will remain open as long as you want it to stay open.
This is a very easy and handyway to prevent the Command Prompt windowfrom closing after running commands.

Edit your bat file by right clicking on it and select Edit from the list.
Your file will open in notepad.
Now add PAUSE word at the end of your bat file.

This will keep the Command Prompt window open until you do not press any key.
Double-nudge the saved file after it has been saved.
Windows will save the registry values to the Registry.
If you have any other questions, yo comment below.
7
Get weekly insights, tips and exclusive content delivered straight to your inbox.
Talk to us straight and get your questions answered right away
source: www.itechtics.com