I am working on some batch file. I need to read name from some text file. Let me explain it
I have one file File.txt, which has entry like ”FirstName=John”. Now my batch file should read text ”John” from the file and I should be able store ”John” in some variable too.
But with following code, If I use “delims==”,I can get ”FirstName” text stored in some variable but not ”John”.
for /F “delims==” %%I in (File.txt) do set Title=%%I
echo %Title%
But Is there any way where I can get “John” from my File.txt and store it with in my For loop ?