Xref: utzoo comp.os.msdos.misc:1231 comp.os.msdos.programmer:3516 comp.os.msdos.apps:1126 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!uw-beaver!ubc-cs!alberta!mts.ucs.UAlberta.CA!Al_Dunbar From: userAKDU@mts.ucs.UAlberta.CA (Al Dunbar) Newsgroups: comp.os.msdos.misc,comp.os.msdos.programmer,comp.os.msdos.apps Subject: Re: PATH statement Message-ID: Date: 13 Feb 91 06:12:27 GMT References: <26780@uflorida.cis.ufl.EDU> <1991Feb8.072845.2809@rice.edu> <5334@s3.ireq.hydro.qc.ca> Organization: MTS Univ of Alberta Lines: 40 In article <5334@s3.ireq.hydro.qc.ca>, robert@ireq.hydro.qc.ca (R.Meunier 8516) writes: >In article <1991Feb8.072845.2809@rice.edu> glratt@uncle-bens.rice.edu (Glenn Forbes Larratt) writes: >>In article <26780@uflorida.cis.ufl.EDU> jdb@reef.cis.ufl.edu (Brian K. W. Hook) writes: >|> >|>CONFIG.SYS: >|> >|>shell=c:\command.com /e:512 /p >|> >|>PATH=C:\BIN\WINDOWS;C:\BIN\WINDOWS\EXCEL;C:\DOS\UTILS\NORTON50;etc. etc. >| >|If by "has exceeded the legal limit allowed by DOS," you mean it has more >|than 15/16 (can't remember which) directory paths specified, there is no >|way in DOS that I know of to do this: however, a good solution is to have >|a \BAT subdirectory which would be first or at least early in your path: >|this would allow you to encapsulate particular software in a batch file >|that temporarily adds the necessary path to your search path, executes your >|program by full pathname (e.g. \DOS\UTILS\NORTON45\NI; this allows you to >|name your batch file \BAT\NI.BAT), then prunes the search path. Some >|organization along these lines can go a long way. > > > > A better way is to use the subst command to create special logical drive. >you add lastdrive=z in your config.sys > subst c:\dos\utils u: in your autoexec.bat > >and change your path to > path= ... ;u:\norton50; ... > I don't know if that's "better" than the "BAT suggestion. Having a looooong PATH means that all those directories are searched whenever DOS decides that what you have typed is not an internal command. OK I lied, it stops searching when it finds what it is looking for. -------------------+------------------------------------------- Al Dunbar | Edmonton, Alberta | Disclaimer: "I disclaim disclaimers" CANADA | -------------------+-------------------------------------------