batch-file - 批量检查序列号
问题描述
我正在编写一个脚本来检查 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
解决方案
推荐阅读
- python-3.x - 做一个简单的类支持并发
- c# - TextBlock 的 ItemSource/DataSource
- .net - MVC 和 WebApi 控制器具有不同的解析行为
- graphql - GraphQL 查询将数据从一台服务器复制到另一台服务器
- intellij-idea - IntelliJ Idea 无法运行 Kotlin 文件
- python - 无法导入已安装的 Python 模块
- html - 如何获取第一个 HTML 元素的文本
- html - 视口元标记问题?样式标签在 eBay 移动视图上不起作用
- php - 如何使用 SLIM 处理多租户?
- c - C链表函数程序遇到分段错误