www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/27/06:48:17

Reply-To: <arfa AT clara DOT net>
From: "Arthur" <arfa AT clara DOT net>
To: "DJGPP Mailing List" <djgpp AT delorie DOT com>,
"Goh Yong Kwang" <s6606555 AT mercury DOT np DOT ac DOT sg>
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
Importance: Normal
In-Reply-To: <Pine.SOL.3.91.980827121442.26553B-100000@mercury>

> 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

- Raw text -


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