How to Stop Command Prompt from Closing After Executing a Batch File in Windows 11
Channel:
Subscribers:
30,100
Published on ● Video Link: https://www.youtube.com/watch?v=vliz0IGHxcA
Tired of Command Prompt closing immediately after running your batch file in Windows 11? This video provides simple solutions to keep the Command Prompt window open for review. Learn how to add a pause command to your batch file, use the "cmd /k" switch, or create a shortcut with specific parameters. Discover the best method to suit your needs and gain better control over your batch file execution. Watch now!
00:00 Intro
00:10 By Adding Pause to the batch script file
00:59 Add Cmd/K at the end of the batch file
01:56 Changing the Registry file to stop the command prompt from closing
03:27 Outro