Post Reply  Post Thread 
[RESOLVED] DOS Commands...
Author Message
andersonmat
HL2DM Server Admin
**


Posts: 47
Group: Registered
Joined: Feb 2008
Status: Offline
Post: #1
Exclamation  [RESOLVED] DOS Commands...

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:

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


My Computer Specs:
-Asus M2N-SLI Deluxe Motherboard
-AMD Athlon X2 6400+ 3.2GHz Processor
-BFG 8800 GTS 320Mb. Video Card
-2X 1 GB Kingston RAM 667 MHz.
-2X 1 GB G Skill RAM 800 MHZ.

This post was last modified: 03-27-2008 07:33 AM by andersonmat.

03-27-2008 02:15 AM
Find all posts by this user Quote this message in a reply
Drocona
Forum admin
*******


Posts: 3,931
Group: Administrators
Joined: Mar 2005
Status: Offline
Post: #2
RE: DOS Commands...

I've been fooling around with that a bit but I didn't have time to continue, I stumbled upon this website when Iw as into it, might help:
http://www.computing.net/windows2000/www...63769.html


Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
http://srcdsgroup.black-sky.nl
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
03-27-2008 02:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
andersonmat
HL2DM Server Admin
**


Posts: 47
Group: Registered
Joined: Feb 2008
Status: Offline
Post: #3
Toungue  RE: DOS Commands...

Drocona Wrote:
I've been fooling around with that a bit but I didn't have time to continue, I stumbled upon this website when Iw as into it, might help:
http://www.computing.net/windows2000/www...63769.html


I wasn't sure where to post it-- windows or off topic--but sorry! Smile

I was on that site last night--not quite what I'm looking for but close...

This post was last modified: 03-27-2008 02:34 AM by andersonmat.

03-27-2008 02:32 AM
Find all posts by this user Quote this message in a reply
Drocona
Forum admin
*******


Posts: 3,931
Group: Administrators
Joined: Mar 2005
Status: Offline
Post: #4
RE: DOS Commands...

It was also the best i could find, then I just quit trying and when I have the time I'll just do it in Delphi (it's much easier to do)


Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
http://srcdsgroup.black-sky.nl
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
03-27-2008 04:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: