When formatted in a certain way, *.ini files can be read by NT batch scripts (windows).

 

Example *.lini file (config.ini):

option1=lorem
option2=ipsum

 

Example .bat (readini.bat):

@echo off
for /f "tokens=1,2 delims==" %%a in (config.ini) do (
if %%a==option1 set option1=%%b
if %%a==option2 set option2=%%b
)

echo %option1%
echo %option2%

Leave your comments

Post comment as a guest

0

Comments

    • No comments found