Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

How 2 add directory to PATH from command line (Users)

posted by Arjay, 07.01.2013, 22:07

> 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:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum