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