Path: utzoo!attcan!uunet!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!npd.novell.com!excelan!bdelvecc From: bdelvecc@kinetics.com (Brian Del Vecchio) Newsgroups: comp.sys.novell Subject: Re: Lost PATH Summary: use 'MAP INSERT' to preserve original DOS path Keywords: path logout map insert Message-ID: <2602@excelan.COM> Date: 11 Jan 91 18:52:57 GMT References: <2752.278b55af@iccgcc.decnet.ab.com> Sender: news@excelan.COM Reply-To: bdelvecc@wc.novell.com (Brian Del Vecchio) Organization: Novell Inc., Walnut Creek, CA. Lines: 57 In order to preserve the original DOS path after Logout, we use the strategy of always using MAP INSERT for creating new search drives. This will preserve the DOS 'search drives' (entries in path variable) while you are logged in, and when Logout deletes the NetWare search drives from the path, the DOS entries will be left untouched. Here's my login script: map display off REM ***** My preferred mappings map root F:=sys:users/bdelvecc map M:=proj:nw386 map G:=proj:nw386/devenv map N:=proj:nw386/devenv/nlm map p:=proj:nw386/bdv/stack map root S:=proj:nw386/stack map H:=s:sys/h map I:=s:include map J:=g:include map L:=s:lib map R:=S:release/v0300b9 REM ***** Search mappings; REM ***** always use MAP INS to preserve original DOS path map ins s4:=sys:public map ins s4:=proj:nw386/bdv/wv map ins s4:=g:bin map ins s4:=sys:local/bin map ins s4:=f:bin REM ***** Try to attach to wc-fields ***** if "%P_STATION" != "00001B02FF4C" then begin attach wc-fields/bdelvecc if "%ERRORLEVEL" == "0" then begin map rem z: map t:=wc-fields/sys:system map insert s4:=wc-fields/sys:public end end drive F: #sys:public/capture DOS SET DEV_ENV="M:\\nw386\\devenv" brian del vecchio; software engineer; novell, inc.; walnut creek, ca, usa; [----------------------------------------------------------------------------] "Our young people are being lied to. [The military] is not a place for education and adventure. It's about killing. That's all." - Leonard McNeil, American Friends Service Committee "It's morally wrong to kill thousands of Arabs to protect America's interests. And minorities shouldn't die for it. I was too naive when I enlisted to understand that it's the minorities that get screwed by a war." - USMC Cpl Tahan Jones, African American, Conscientious Objector [---the opinions expressed are mine...the official Big Red Word may differ---]