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)
NEQ is not portable as came about later, this version should be in case you ever need it for info:
if NOT "%oldpath%" == "" goto nosave
:nosave
set path=%oldpath%
path d:\pp26\bin\i386-win32;%path%
disclaimer: typed from memory not on a pc after a few beers. ;)
> the main reason is that the various compilers/ides (BP,Delphi, cygwin and fpc
I know the problem well !
> P.s. I know that the last two lines can be combined, but my old generator
> doesn't do it
number of times I've seen ampersand break shells.... amusingly I have just remembered the reverse problem adding back characters that some DOS utils used to block unnecessarily, e.g. () in volume labels. I have just remembered one of my first DOS utils (never widely shared as predated my involvement with BBS's) which patched label to allow 4-5 characters to be used.
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