Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!srhqla!quad1!ttidca!svirsky From: svirsky@ttidca.TTI.COM (Bill Svirsky) Newsgroups: comp.sys.ibm.pc Subject: Re: How can I set a PATH longer than 128 bytes ? Message-ID: <10441@ttidca.TTI.COM> Date: 3 Mar 90 01:52:32 GMT References: <5762@ncrcae.Columbia.NCR.COM> <90059.112138GILLA@QUCDN.BITNET> Organization: Citicorp/TTI, Santa Monica Lines: 35 In article <90059.112138GILLA@QUCDN.BITNET> GILLA@QUCDN.QueensU.CA (Arnold G. Gill) writes: +In article <5762@ncrcae.Columbia.NCR.COM>, heath@ncrcae.Columbia.NCR.COM (Robert +Heath) says: +> +>How can I set my dos PATH variable longer than 128 bytes? I'm running +>DOS 3.3. It seems when I set my PATH variable in my AUTOEXEC.BAT, +>DOS truncates anything longer than 128 bytes. Is there a way to do +>this by assigning shorter environment variables and concatenating +>them somehow ? Thanks. +> +> Robert Heath + + Concatenating variables will *NOT* work at all ... On my Compaq 386 running DOS 3.31 and an IBM PC/AT running PCDOS 3.10 I have no problem concatenating environment variables *within batch files*. You can't do it from the command line though. Try the following in your autoexec.bat: set path=whatever_the_first_part_of_your_path_is set path=%path%;whatever_the_next_part_of_your_path_is ... Just don't make any single "set" command longer than 128 (see below). +...the problem is the DOS +limit itself. DOS does not allow you to enter environment variables that are +longer than 128 characters through DOS. ... The problem is that MSDOS will not allow a command line over 128 characters in length. -- Bill Svirsky, Citicorp+TTI, 3100 Ocean Park Blvd., Santa Monica, CA 90405 Work phone: 213-450-9111 x2597 svirsky@ttidca.tti.com | ...!{csun,psivax,rdlvax,retix}!ttidca!svirsky