2017-06-29 64 views
1
@echo off 
systeminfo | findstr /c:"Host Name" 
systeminfo | findstr /c:"Domain" 
systeminfo | findstr /c:"OS Name" 
systeminfo | findstr /c:"System Manufacturer" 
systeminfo | findstr /c:"System Model" 
systeminfo | findstr /c:"System type" 
systeminfo | findstr /c:"Total Physical Memory" 
ipconfig | findstr IPv4 
echo Hard Drive Space: 
wmic diskdrive get size > C:\Scripts\Testtt.txt 

目前唯一保存到testtt.txt文件的是磁盤空間。如何使用批處理腳本將所有顯示的數據記錄到文本文件中?

回答

0
(systeminfo | findstr /c:"Host Name" 
systeminfo | findstr /c:"Domain" 
systeminfo | findstr /c:"OS Name" 
systeminfo | findstr /c:"System Manufacturer" 
systeminfo | findstr /c:"System Model" 
systeminfo | findstr /c:"System type" 
systeminfo | findstr /c:"Total Physical Memory" 
ipconfig | findstr IPv4 
echo Hard Drive Space: 
wmic diskdrive get size) >C:\Scripts\Testtt.txt 

相關問題