I have a file with this format and i want to retrieve the following information: 3.3.0.94 I am not sure if i'm using the right script or the right format but when i launch my command there are multiples results modyfying my variable. Here is my command:
FOR /F "delims== skip=2 tokens=2" %G IN (C:\%path%\%file%) DO setx /M VersionNumber %G
This is the format of my file:
DATE=2022-09-07
TIME=05:24:18
VERSION=3.3.0.94
BUILD=1
PATCH=a