Hello all,
I am trying to have this batch store a variable read from a file with value inside of it.
Here is what I have so far, but it seems it cannot set the variable. This is bewildering.
@echo off
cd %userprofile%
for /f "delims=" %%a in (code.ini) do (
echo %%a
set code= <code.ini
)
ECHO Code is:
ECHO '%code%'
Which results in this:
a1b2C3d4e5
ECHO is off.
Code is:
''
Perhaps I have the syntax wrong?
Any helpful advice would be greatly appreciated