Find version inside a file
Posted: 14 Feb 2012 11:53
Hi, the title is not the best but you will understand by seeing it:
File: R:\info.txt
content:
Behavior:
If image is a then load a.bat
If image is b then load b.bat
I found something that could work but I don't understant the example:
for /f "tokens=2 delims= " %%i in ('type N:\script\SQLicenseList.txt ^| find "%ComputerName%"') do (
volumeid c: %%i
)
Thank you for your help
File: R:\info.txt
content:
Code: Select all
image a
version 3.0
computer HP EliteBook 8540p
system Windows 7 x86
Behavior:
If image is a then load a.bat
If image is b then load b.bat
I found something that could work but I don't understant the example:
for /f "tokens=2 delims= " %%i in ('type N:\script\SQLicenseList.txt ^| find "%ComputerName%"') do (
volumeid c: %%i
)
Thank you for your help