home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / novell / 10539 < prev    next >
Encoding:
Text File  |  1992-12-15  |  2.2 KB  |  46 lines

  1. Newsgroups: comp.sys.novell
  2. Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!netcomsv!butch!iscnvx!enterprise!news
  3. From: lb00197@Corlac (David Porco)
  4. Subject: Re: Login.exe errorlevels in batch files?
  5. Message-ID: <lb00197.19@Corlac>
  6. Sender: news@enterprise.rdd.lmsc.lockheed.com
  7. Nntp-Posting-Host: 129.197.235.11
  8. Organization: Lockheed
  9. References: <bsw.10.0@utrcv1.res.utc.com> <1992Dec8.221502.29817@actrix.gen.nz> <8BR9JTC@wedel.hanse.de>
  10. Date: Tue, 15 Dec 92 16:22:35 GMT
  11. Lines: 33
  12.  
  13. In article <8BR9JTC@wedel.hanse.de> jan@wedel.hanse.de (Jan Hinnerk Haul) writes:
  14.  
  15. >robinson@actrix.gen.nz (Tom Robinson) writes:
  16.  
  17. >>In article <bsw.10.0@utrcv1.res.utc.com> bsw@utrcv1.res.utc.com (Bruce S. Winters) writes:
  18. >>> I am attempting to write a batch file on a pc to login to the fileserver 
  19. >>> with minimal user input. Does login pass any DOS errorlevel parameters?
  20. >>> i.e. when an incorrect password is encounterd ?
  21.  
  22. >>I have the LOGIN command in our AUTOEXEC files.  If ERRORLEVEL 1 is
  23. >>returned, it loops around and the user has to login again.  ERRORLEVEL
  24. >>0 is returned for a successful login, all others (wrong password,
  25. >>server down, IPX not loaded) that I've come across return ERRORLEVEL 1
  26.  
  27. >You can distinguish between server down and wrong user/password by checking
  28. >F:\LOGIN\LOGIN.EXE (with IF EXIST...) - when you can finf that file,
  29. >the server is up and running but not the user ;-)
  30.  
  31. This method works great if ALL of your users have a LASTDRIVE of E.  Netware
  32. will use the next available drive as the network drive.  So if your last 
  33. drive is set to S then LOGIN.EXE would be in T:\LOGIN\LOGIN.EXE.  I have 
  34. not actually seen anyone do this, but you might keep this in your 
  35. troubleshooting bag of tricks.  I have used both methods and they both 
  36. work just as well.
  37. .
  38.  --------------------------------/^\----------------------------------
  39.  The views expressed are my      | |    We make our own reality.
  40.  own, and could change at any    | |
  41.  moment.                         | |     )))))   )   )  ) ))))
  42.  --------------------------------| |      )   )  )))  ) )  )))
  43.  David V. Porco                  | |      ))))   )  )  )    ))))
  44.  Systems Programmer              | |
  45.  --------------------------------| |----------------------------------
  46.