03-27-2008, 02:15 AM
(This post was last modified: 03-27-2008, 07:33 AM by andersonmat.)
So, I need help on a DOS command to read an .ini file and then output the result as a variable. I have a program that will output the install directory to a .ini file called "install.ini"...
The INI file has on category and one value:
So far, i have most of the code needed to properly execute the program and it is as follows:
Any help would be greatly appreciated as Google has let me down--i cant seem to find anything on Google!
Thanks ahead of time:
Matt Anderson
The INI file has on category and one value:
Code:
[Configuration]
Directory= (WHAT EVER THE USER PICKS)
So far, i have most of the code needed to properly execute the program and it is as follows:
Code:
@echo off
cls
set inifile=install.ini
set install=(CODE TO READ THE .INI File)
hldsupdatetool -command update -game "hl2mp" -dir %install%
EXIT
Any help would be greatly appreciated as Google has let me down--i cant seem to find anything on Google!
Thanks ahead of time:
Matt Anderson