|for /f "tokens=*" %%v in (file.txt) do ( echo %%v )|
this command displays each line of the file "file.txt"
How to save the data in %%v to another variable in for loop..???
for /f "tokens=*" %%v in (file.txt) do ( set string=%%v & echo %string% )
in the above command the output is JUST ECHO OFF.. I don't get the lines of file.txt as output...!!
HOW TO rectify the error in my coding...???
I want to transfer the data of first line in %%V to %string% inside the for loop......??