I'm trying to read in from a file and find a certain string, once it's found i have to split it at the = and get the text to be used in a file name backup. The only thing i'm having trouble with is getting the correct string.
This is the code i'm using
FOR /F %%A IN (C:TESTlpcqparm.cfg) DO ( @ECHO
SET VAR=%%A @ECHO
The echo of the %%A variable won't let me split the string to compare it and on the following line when i put it into a variable the variable always contains the last line of the file.
The input file contains the following info
Does anyone know how this could be done or why when i put the %%A into a varaible it always contains the last line of the file?