How to FIND more than one string?
I wanna extract two pieces of info, for example,
2. Computer Name
Two questions (see comments below)
Consider this, please:
:: 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
How can I do the above task without the for loop in the criterion log?