I'm writing a script that checks the serial number of the PCS motherboard and compares it to a number I've hardcoded in the script. If the numbers match, the script should continue. Here's what I've written so far, but I can't get the script to go to :menu
. What am I doing wrong?
:hwid
cls
echo Please Enter Key
set /p hwid=<wmic baseboard get serialnumber>
if %hwid%==190958896502586 goto menu
if %hwid%==190958896502586 goto menu
if not %hwid%==test goto login
if not %hwid%==test2 goto login