Follow-up to my last, here's my USENT.BAT, which is executed 
at the end of the NetWare login script with  

  exit "L %LOGIN_NAME"

(where L.BAT CALLs this batch file among others...)

--------- Included Stuff Follows ----------------

@echo off
if .WINNT==.%OS% goto WinNT2k
:: above line branches
  map |find/i "L:">nul
  if errorlevel 1 goto UseIt_L
    net use L: /delete>nul
:UseIt_L
    echo Logging in to NT Server and mapping L: drive ...
    net use l: \\NTserver\Ldrive
    if errorlevel 1 pause
    goto Done_L
:Done_L
:: repeat above section for each mapping needed
goto Exit
:WinNT2k
  echo Logging in to NT Server and mapping drives  ...
  if exist j:\nul net use J: /delete >nul
  net use J: \\ospreyserver\CD /persistent:no
  if exist L:\nul net use L: /delete >nul
  net use l: \\ospreyserver\osprey /persistent:no
:Exit

--------- Included Stuff Ends ----------------

---------------------------------------------------------
Angus Scott-Fleming              GeoApps, Tucson, Arizona
[EMAIL PROTECTED]   1-520-290-5038 / fax 1-208-248-3124
---------------------------------------------------------

  "Those who would give up essential Liberty, to purchase a 
   little temporary safety, deserve neither Liberty nor 
safety." 
       - Benjamin Franklin



------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to