Comments: Authenticated sender is From: "George Foot" To: Goh Yong Kwang Date: Thu, 27 Aug 1998 16:11:44 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: How to locate djgpp.env? Reply-to: george DOT foot AT merton DOT oxford DOT ac DOT uk CC: djgpp AT delorie DOT com Message-Id: Precedence: bulk On 27 Aug 98 at 12:20, Goh Yong Kwang wrote: > I'm planning to write a utility that can help people to modify the > djgpp.env file. Are you sure that's wise? Altering djgpp.env can stop all djgpp programs from working, and it's hardly ever necessary. > How do I detect whether DJGPP is installed in a user's computer > *reliably*? Good question. Does it matter though? If your only intention is to edit the djgpp.env file, you can use the environment variable DJGPP which should point to it. Note that if there's something wrong with their DJGPP setting or djgpp.env file your program might not run, because it will try to load the djgpp.env file. > Also, how do I locate the djgpp.env file if the user has not set the DJGPP > environment variable to indicate djgpp.env's location? (This may sound > silly since most people installs DJGPP in \DJGPP directory and the file > can be found there but there is also a minority who has installed DJGPP > in some other unusual location on their hard disk.) :) Search the whole hard disk? Remember though that it might not be on a local disk, or someone might have two copies of djgpp installed. I don't think what you're asking makes a lot of sense -- it's like asking how to find a game you've installed when you forget where you put it. -- george DOT foot AT merton DOT oxford DOT ac DOT uk