我刚刚开始学习编写批处理文件。
基本上我有这个脚本
@echo off
echo.
echo Current Serials-
echo.
wmic bios get serialnumber
wmic diskdrive get serialnumber
wmic baseboard get serialnumber
pause
有这个输出
Current Serials-
SerialNumber
Insert Serial Number Here
SerialNumber
Insert Serial Number Here
Insert Serial Number Here
SerialNumber
Insert Serial Number Here
但我希望输出看起来像这样
Current Serials-
Bios SerialNumber- Insert Serial Number Here
Diskdrive SerialNumber- Insert Serial Number Here, Insert Serial Number Here
BaseBoard SerialNumber- Insert Serial Number Here