Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!ucbvax!hplabs!hp-pcd!hplsla!kens From: kens@hplsla.HP.COM (Ken Snyder) Newsgroups: comp.sys.ibm.pc Subject: Re: setting the environment with long value strings... Message-ID: <5190043@hplsla.HP.COM> Date: 6 Sep 89 19:51:20 GMT References: <7058@rpi.edu> Organization: HP Lake Stevens, WA Lines: 21 > I am looking for a simple way to set the environment variables in > the command processor (COMMAND.COM) when their values are > 128 > characters in length. For example I have a PATH string If the only long variable you have is the PATH variable you need a freebb utility called ADDPATH which simply adds to the path variable whatever you give it. My autoexec.bat has an entry like: PATH=C:\;nextdir;nextdir; ADDPATH \UTIL\NORTON ADDPATH \UTIL\PCKWIK ADDPATH \etc... . . It seems to work just fine. There is an accompanying utility called DELPATH which, you guessed it, removes paths from the PATH var. Hope this helps, Ken