From: cgb3 AT york DOT ac DOT uk (Colin Blackburn) Newsgroups: comp.os.msdos,comp.os.msdos.djgpp,comp.os.ms-windows.win95 Subject: Re: Looking for help with MSDOS AUTOEXEC & CONFIG Date: Thu, 14 May 1998 11:55:18 +0100 Organization: Psychology, University of York Lines: 32 Sender: cgb3 AT york DOT ac DOT uk Message-ID: References: <355ac9a8 DOT 0 AT scooby DOT nildram DOT co DOT uk> NNTP-Posting-Host: tracker.york.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk [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