Code: Select all
Set c=""
Set /P c=Press [Y] ^&^ [Enter] to REBOOT NOW or [ANY key] to CONTINUE.
If /I "%c%" EQU "Y" Goto :REBOOT
I used the Set c="" because I understand that it ignores the previous keystroke, or am I wrong?
I have tried several ways, including using "" etc!
Thanks in advance.