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


Example *.lini file (config.ini):



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%

Comments (0)

There are no comments posted here yet

Leave your comments

Posting comment as a guest. Sign up or login to your account.
Attachments (0 / 3)
Share Your Location