i have a bat file that has the following it:
sm start "Schedule"
this code runs but the command window closes immediately
what can i put inside the bat file to keep the window open?
i have a bat file that has the following it:
sm start "Schedule"
this code runs but the command window closes immediately
what can i put inside the bat file to keep the window open?
Just put the command
pause
in the batch file at the end.Or you can run it with
cmd /k mybatfile.bat
instead ofcmd mybatfile.bat
. Very useful if you can't edit the file or want to invoke a quick command fromRun
. F.e.:cmd /k ipconfig
I don't know what "sm" or "Schedule" are. But if "start" is cmd.exe's integrated start command, you may be looking for: