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

  1. Newsgroups: comp.sys.novell
  2. Path: sparky!uunet!math.fu-berlin.de!unidui!Germany.EU.net!news.Hamburg.Germany.EU.net!abqhh!drdhh!wedel.hanse.de!jan
  3. From: jan@wedel.hanse.de (Jan Hinnerk Haul)
  4. Subject: Re: Login.exe errorlevels in batch files?
  5. Message-ID: <8BR9JTC@wedel.hanse.de>
  6. Organization: None - the genius overlooks the chaos
  7. References: <bsw.10.0@utrcv1.res.utc.com> <1992Dec8.221502.29817@actrix.gen.nz>
  8. Date: Sat, 12 Dec 1992 16:17:59 GMT
  9. Lines: 19
  10.  
  11. robinson@actrix.gen.nz (Tom Robinson) writes:
  12.  
  13. >In article <bsw.10.0@utrcv1.res.utc.com> bsw@utrcv1.res.utc.com (Bruce S. Winters) writes:
  14. >> I am attempting to write a batch file on a pc to login to the fileserver 
  15. >> with minimal user input. Does login pass any DOS errorlevel parameters?
  16. >> i.e. when an incorrect password is encounterd ?
  17.  
  18. >I have the LOGIN command in our AUTOEXEC files.  If ERRORLEVEL 1 is
  19. >returned, it loops around and the user has to login again.  ERRORLEVEL
  20. >0 is returned for a successful login, all others (wrong password,
  21. >server down, IPX not loaded) that I've come across return ERRORLEVEL 1
  22.  
  23. You can distinguish between server down and wrong user/password by checking
  24. F:\LOGIN\LOGIN.EXE (with IF EXIST...) - when you can finf that file,
  25. the server is up and running but not the user ;-)
  26.  
  27. -- 
  28. Jan H. Haul        Tel. +49 40 - 890 57 57        Disc.: Not even *my*
  29. Hamburg, Germany    Fax  +49 40 - 890 51 57        opinion
  30.