Reply-To: From: "Arthur" To: "DJGPP Mailing List" , "Goh Yong Kwang" Subject: RE: How to locate djgpp.env? Date: Thu, 27 Aug 1998 11:45:46 +0100 Message-ID: <000001bdd1a7$d9d1f080$8b4e08c3@arthur> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Importance: Normal In-Reply-To: Precedence: bulk > I'm planning to write a utility that can help people to modify the > djgpp.env file. > > How do I detect whether DJGPP is installed in a user's computer > *reliably*? A good start is to check that all the files required to run DJGPP are in the correct place. If DJGPP is correctly installed, you know where it is installed because there is a SET DJGPP=... statement in your autoexec.bat. Look in that directory and search each subfolder for the relevant files. > 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.) :) You'll need to search every file on the hard disk until you find it. This is not so hard as there are some good ANSI commands for precisely this purpose. You should allow the user to select where they think the file is, and the search starts from there. If that fails, you search the rest of the partition, then the rest of the installed drives (remember that some people run DJGPP straight from CDROM). HTH James Arthur jaa AT arfa DOT clara DOT net ICQ#15054819 st the BIN directory. But what you have should work. The only thing I can think of is that you havn't got all the files required. Check the ZIP PICKER at www.delorie.com/djgpp and see if you have installed all the files you need. James Arthur jaa AT arfa DOT clara DOT net ICQ#15054819