www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/05/25/14:59:37

Date: Tue, 25 May 1993 11:08:37 -0700 (PDT)
From: Andrew Tucker <a_tucker AT paul DOT spu DOT edu>
Subject: Re: Access to CONFIG.SYS parameters
To: Peter JB King <pjbk AT cee DOT heriot-watt DOT ac DOT uk>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

On Tue, 25 May 1993, Peter JB King wrote:

> I have some code that opens a lot of files, and sometimes users change
> their config.sys files so that insufficient FILES=n are specified.
> 
> Is there a guru with some code that queries this parameter from DOS. 
> I'd have thought there ought to be a DOS interupt for it, but I don't
> see one.  Code that would work with either gcc or TurboC would be nice.
> -- 

If your just looking to find the value and nod change/fiddle with it, IMO
the most portable solution would be to read config.sys and parse out the
value if it's there.  This is assuming, of course, that you have an
available file handle.....


I think that there is a DOS INT 21h service to do this.  I don't have any
references available right now, but, in the words of Schwarzenegger, "I'll
be back!".	:):)

/* Andrew */

"As far as the laws of mathematics refer to reality, they are not certain;
 and as far as they are certain, they do not refer to reality"
				Albert Einstein






- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019