check file not string
Posted: 27 Jul 2011 07:18
Hi guys,
I need your help in the following script.
If I put the batch file in the same dir as the file I want to check it work in that way:
But if I want to use a variable the script try to split the string of the variable and not the content of the file.
thanks in advance
I need your help in the following script.
If I put the batch file in the same dir as the file I want to check it work in that way:
Code: Select all
for /F "tokens=1,2 delims==" %%i in (Settings.ini) do (
echo %%i
)
But if I want to use a variable the script try to split the string of the variable and not the content of the file.
Code: Select all
set oldini="%APPDATA%\Settings.ini"
for /F "tokens=1,2 delims==" %%i in ("%oldini%") do (
echo %%i
)
thanks in advance