I've been playing around with writing batch files on my computer for some time, and I am confused about why PAUSE doesn't work like I thought(maybe I'm just doing it wrong idk, just really confused).
Basically I have:
@echo off
echo Hello!
pause
echo Hi again!
pause
echo HEY HEY!!
pause
and when it runs I get:
Hello!
Press any key to continue...
I then press just one key and this occurs:
Hi again!
Press any key to continue...
HEY HEY!!
Press any key to continue...
I don't understand why it skips the second PAUSE...I've noticed that if I was to do:
@echo off
echo Hello!
pause
echo Hi again!
pause
pause
echo HEY HEY!!
pause
then it will pause on "Hi again!" opposed to executing it without pause(however it will print "Press any key to continue..." two times consecutively)
I'm just really lost and can not proceed with my life until I know why it does this o: