say I have a file named config.ini content of config.ini is
video=nvidia
os=microsoft=========
OK, now how do I
SET vga=$(video)
SET os=$(os)by reading config.ini
... Basically I wanna write a batch file that obtains variables from another file
This should do it:
@echo off
for /f "tokens=1,2 delims==" %%a in (config.ini) do (
if %%a==video set vga=%%b
if %%a==os set os=%%b
)
| « batch merge/substitute to... | Best programming language... » |