I have a file that contains some information about the product I work on. The information I'm specifically interested in is the version of the product.
I need to read in this version and store it in a variable that I can manipulate so I can increment the version number appropriately. I'm trying to use a line like this:
for /f "tokens=2" %%i in ('type product.properties^|find "about.version=Version"') do set currentversion=%%i
I know that the file contains the string "about.version=Version" and it is immediately followed by a space and then the Version number. However when I try and echo %currentversion% there is nothing stored in it.
I'm on Windows XP, thanks.