Here we only retrieve property values but not sections or property names.
@echo off
setlocal enabledelayedexpansion
:init_vars
set ini_file=my.ini
goto show_values
:show_values
for /F "tokens=1,2 delims==" %%L in (%ini_file%) do (
if not [%%M]==[] (
echo Value: %%M
)
)
goto eof
:eof
echo Press any key to quit
pause > NUL
Simple :-).
Thoughts?
No comments:
Post a Comment