How 2 add directory to PATH from command line (Users)
That's code similar to what I use, I use the following code (cmd.exe though, don't know how portable NEQ is to Dos) to switch between multiple versions of toolchains.
if "%OLDPATH%" neq "" goto :nosave
set OLDPATH=%PATH%
:nosave
SET PATH=%OLDPATH%
PATH d:\pp26\bin\i386-win32;%PATH%
the main reason is that the various compilers/ides (BP,Delphi, cygwin and fpc verions) all bring at least their own "make", and some of them also have own copies of other binaries(as,ld etc).
This makes it always possible to "undo" changes to the path by setting PATH to OLDPATH.
P.s. I know that the last two lines can be combined, but my old generator doesn't do it
Complete thread:
- How 2 add directory to PATH from command line - CluelessInSeattl, 07.01.2013, 17:19 (Users)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- How 2 add directory to PATH from command line - Arjay, 07.01.2013, 18:05
- How 2 add directory to PATH from command line - marcov, 07.01.2013, 18:22
- How 2 add directory to PATH from command line - Arjay, 07.01.2013, 22:07
- How 2 add directory to PATH from command line - marcov, 07.01.2013, 18:22
- How 2 add directory to PATH from command line - Rugxulo, 07.01.2013, 22:33
- How 2 add directory to PATH from command line - marcov, 09.01.2013, 16:55
- How 2 add directory to PATH from command line - Arjay, 07.01.2013, 18:05
Mix view