Mail Archives: djgpp/1998/05/14/07:00:58
[This followup was posted to comp.os.msdos.djgpp and a copy was sent to
the cited author.]
On Thu, 14 May 1998 11:36:54 +0100, Graeme Fenwick wrote:
> 4) Does SET PATH tell DOS where to search for a certain command, say gcc,
> and if so, how do I get DOS to look in two different paths for a program
> (since it seems I can't do two SET PATHs)?
Set PATH sets the environment variable PATH, this variable is checked
when looking for executables.
> I've got this line in my AUTOEXEC.BAT file...
> set PATH=C:\NUPROGS\DJGPP\BIN\GNU\EMACS\BIN;%PATH%
The %PATH% at the end of this line refers to the existing PATH variable,
ie the PATH is effectively having the bit at the front added on.
> but I'd like to have emacs on the path
> C:\NUPROGS\djgpp\gnu\emacs
> running.
Put
SET PATH=C:\NUPROGS\DJGPP\GNU\EMACS;%PATH%
in your autoexec either in place of or in addition to the line above
depending on whther you want both of these paths or just the latter. You
can also set the path at the command line or via another batch file in
the same way.
Colin
- Raw text -