delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/08/28/15:17:10

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Andrew Wall" <wallguide-usenet AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: NT for Autoexec
Date: Sat, 28 Aug 2004 20:06:10 +0100
Lines: 75
Message-ID: <2pc3d2FjgtoqU1@uni-berlin.de>
References: <20040827165241 DOT 10778 DOT 00003273 AT mb-m25 DOT news DOT cs DOT com> <2pb4idFhqiscU1 AT uni-berlin DOT de> <009401c48cfe$97738a50$84236652 AT rui>
X-Trace: news.uni-berlin.de F1v74uc9U1bjgRIz2U2I2wjR3SQMyEJe24m3tlgK5DRef2ESy/
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"cosmos" <cosmos AT tvtel DOT pt> wrote in message 
news:009401c48cfe$97738a50$84236652 AT rui...
|> I've got DJGPP working under XP.  The only thing needed is to add lines
| > like:
| >
| > set path=%path%;c:\djgpp\bin
| > SET DJGPP=C:\DJGPP\DJGPP.ENV
| >
| > to Autoexec.nt, which I found on my machine in C:\WINDOWS\SYSTEM32
| >
| > I've had trouble getting the path to work, so I've ended up with making 
a
| > batch file:
| >
| > set PATH=C:\DJGPP\BIN;C:\WINDOWS\SYSTEM32
| > SET DJGPP=C:\DJGPP\DJGPP.ENV
| >
| > So I run cmd.exe, cd to where I want to be, run the above batch file, 
then
| I
| > can run any of the programs in DJGPP.
| >
|
| The manuals of DJGPP advise to make the changes in autoexec.BAT not
| autoexec.NT
| Also the changes are indicated as putting the following lines:
|
| set PATH=c:\djgpp\bin;%PATH%
| set DJGPP=c:\djgpp\djgpp.env
|
| Regards,
|
| Rui Fernandes
|
|

That's very interesting, Rui, but on my system I haven't got an Autoexec.bat 
(Well I have, but that is located at C:\ and I know that isn't used because 
I never see any of the echoes from it), so I created one in 
C:\Windows\System32 with just an echo in it and that never fires off!
This leaves Autoexec.nt as the only place to put these environment 
variables.

In fact I'll quote the first few lines from my Autoexec.nt:
REM AUTOEXEC.BAT is not used to initialize the MS-DOS environment.
REM AUTOEXEC.NT is used to initialize the MS-DOS environment unless a
REM different startup file is specified in an application's PIF.


The reason for not putting %path% in the set PATH= line is that my existing 
path is too long anyway, and I'm only using DOS for DJGPP.

I also find that the command processor CMD.EXE does not execute autoexec.nt 
immediately, it waits until you type in a command and executes autoexec.nt 
just before actually running the command.
Its behaviour is altogether unpredictable.
In fact there are some environment variables present that I can't account 
for, ones that I had put into Autoexec.bat when my system was Windows 98.  I 
can't find what it is that sets these variables.  Any ideas anyone?


Well, my current strategy is to make a shortcut to cmd.exe with command line 
parameters: C:\WINDOWS\SYSTEM32\cmd.exe /K djgpp.bat
And djgpp.bat sets up the environment as we have discussed above.  I've just 
added 'make -v' onto the end to force autoexec.nt to execute.

So, now I don't have the above line in autoexec.nt at all!  They're in 
djgpp.bat - So that's a turn around.


Andrew



- Raw text -


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