首页 > 解决方案 > 批量检查序列号

问题描述

我正在编写一个脚本来检查 PCS 主板的序列号,并将其与我在脚本中硬编码的数字进行比较。如果数字匹配,则脚本应继续。这是我到目前为止所写的,但我无法将脚本转到:menu. 我究竟做错了什么?

: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

标签: batch-file

解决方案


推荐阅读