Date: Tue, 25 May 1993 11:08:37 -0700 (PDT) From: Andrew Tucker Subject: Re: Access to CONFIG.SYS parameters To: Peter JB King 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