www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/27/19:49:42

Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: "George Foot" <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: Goh Yong Kwang <s6606555 AT mercury DOT np DOT ac DOT sg>
Date: Thu, 27 Aug 1998 16:11:44 +0000
MIME-Version: 1.0
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: <E0zC3jm-00048h-00@sable.ox.ac.uk>

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

- Raw text -


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