Let's imagine a Batch game saves your progress in a file.bat file, when we edit that file we got :
set Health=100
set Sword=Gold
i used this command in a Batch file but it's didn't work :
for /f "eol=- delims=" %%a in (file.bat) do set "%%a"
echo Your health is %Health%
echo Your sword is made of %Sword%
it leave it blank.
but if i maked a file like the above but removed the set
(only Health=100 and Sword=Gold without set), it works and give me the variable Health and Sword, but when the set
command added it didn't work, if any one knows solution please tell me and Thanks !
I want a command that give me the Variables i don't want to just delete the set
command from the file, because if i did that the game that saved the bat file will get corrupted while extracting the Variables from the file to continue where you left the game.