Xref: utzoo comp.os.msdos.misc:1097 comp.os.msdos.programmer:3233 comp.os.msdos.apps:1003 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!s3!robert From: robert@ireq.hydro.qc.ca (R.Meunier 8516) Newsgroups: comp.os.msdos.misc,comp.os.msdos.programmer,comp.os.msdos.apps Subject: Re: PATH statement Message-ID: <5334@s3.ireq.hydro.qc.ca> Date: 8 Feb 91 16:38:26 GMT References: <26780@uflorida.cis.ufl.EDU> <1991Feb8.072845.2809@rice.edu> Sender: root@s3.ireq.hydro.qc.ca Organization: Hydro-Quebec Lines: 35 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; ... -- Robert Meunier Institut de Recherche d'Hydro-Quebec Ingenieur 1800 Montee Ste-Julie, Varennes Internet: robert@ireq.hydro.qc.ca Qc, Canada, J3X 1S1 maintainer: BASIC mailing list request to basic-request@ireq.hydro.qc.ca