Quote:
Originally Posted by A31Chris
This is what the new setpath additions look like on my Autoexec.bat:
path=c:\windows;c:\windows\system;c:\bjl\bjl_uploader
set PATH=%PATH%;C:\JAGUAR\BIN
set RDBRC=C:\JAGUAR\BIN\RDB.RC
set DBPATH=C:\JAGUAR\BIN
set ALNPATH=C:\JAGUAR\BIN
set MACPATH=C:\JAGUAR\INCLUDE
set GCC_EXEC_PREFIX=C:/JAGUAR/BIN
set path=%path%;c:\djgpp\bin
set DJGPP=C:\DJGPP\DJGPP.ENV
The PATH environment variable
A definition:The PATH (or SET PATH) command sets the command path in the PATH environment variable. The PATH contains the set of directories used to search for executable files. Used without parameters, the PATH command displays the current command path.
The only "setpath" environment variables (that you refered to above) are ones that begin with:All the other SET commands in your C:\AUTOEXEC.BAT file are unrelated to the PATH. (Apparently they are setting up various other environment variables needed by your two compilers).
The first "setup-a-path" command in your C:\AUTOEXEC.BAT file: path=c:\windows;c:\windows\system;c:\bjl\bjl_uploader
does exactly what it looks like it will do ... set the PATH environment variable to be equal to:c:\windows;c:\windows\system;c:\bjl\bjl_uploader
The second path command:set path=%path%;c:\jaguar\bin
means reset the PATH environment variable to %PATH% (i.e., "whatever is already set in the PATH environment variable") plus:;c:\jaguar\bin
In other words, append the string:;c:\jaguar\bin
to the end of whatever is already is stored in the PATH environment variable.
The third path command in your C:\AUTOEXEC.BAT file: set path=%path%;c:\djgpp\bin
appends the string:;c:\djgpp\bin
to the end of the current PATH environment variable.
So, when DOS executed the first PATH-type command in your C:\AUTOEXEC.BAT file, the PATH environment variable looked like so:path=c:\windows;c:\windows\system;c:\bjl\bjl_uploader
After DOS executed the second PATH command in your C:\AUTOEXEC.BAT file, the PATH environment variable looked like so:path=c:\windows;c:\windows\system;c:\bjl\bjl_uploader;c:\jaguar\bin
And finally, after DOS executed the third path command in your C:\AUTOEXEC.BAT file, the PATH environment variable looked like so:path=c:\windows;c:\windows\system;c:\bjl\bjl_uploader;c:\jaguar\bin;c:\djgpp\bin
So, if you wanted to make your C:\AUTOEXEC.BAT file more efficient, you could replace all three PATH command lines with simply one:path=c:\windows;c:\windows\system;c:\bjl\bjl_uploader;c:\jaguar\bin;c:\djgpp\bin
More info: