我正在尝试创建一个批处理文件,该文件将使用 systeminfo 命令将诸如操作系统、当前登录的域、制造、计算机型号等内容放入 HTML 表中。这是我当前批处理文件的内容:
@echo off
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"OS Manufacturer" /C:"OS Configuration" /C:"OS Build Type" /C:"Original Install Date" /C:"System Boot Time" /C:"System Manufacturer" /C:"System Model" /C:"System Type" /C:"Processor(s)" /C:"BIOS Version" /C:"Windows Directory" /C:"System Directory" /C:"Boot Device" /C:"System Locale" /C:"Input Locale" /C:"Total Physical Memory" /C:"Available Physical Memory" /C:"Virtual Memory: Max Size" /C:"Virtual Memory: Available" /C:"Virtual Memory: In Use" /C:"Domain" /C:"Network Card(s)"
pause
这是当前的输出:
OS Name: Microsoft Windows 7 Professional
OS Version: 6.1.7601 Service Pack 1 Build 7601
Original Install Date: 7/26/2011, 1:47:23 AM
System Boot Time: 2/25/2014, 1:39:14 AM
System Manufacturer: Dell Inc.
System Model: Inspiron 1501
System Type: X86-based PC
Processor(s): 1 Processor(s) Installed.
Domain: WORKGROUP
Press any key to continue . . .
如何将其放入 HTML 表格中?任何帮助将不胜感激!谢谢。