1. BIOS
2. Computer Name
Two questions (see comments below)
Consider this, please:
criterion.log
BIOS
Computer Name
Code: Select all
@ECHO OFF
:: How can I use
:: TYPE systeminfo >> C:\systeminfo.log
systeminfo > C:\systeminfo.log
FOR /F "tokens=* delims=" %%G In (C:\criterion.log) DO (
:: How can I
:: TYPE file | FIND string1 string 2 >> newfile
TYPE C:\systeminfo.log | FIND "%%G" >> C:\extracted.log
)
PAUSE
Last question:
How can I do the above task without the for loop in the criterion log?