home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.novell
- Path: sparky!uunet!math.fu-berlin.de!unidui!Germany.EU.net!news.Hamburg.Germany.EU.net!abqhh!drdhh!wedel.hanse.de!jan
- From: jan@wedel.hanse.de (Jan Hinnerk Haul)
- Subject: Re: Login.exe errorlevels in batch files?
- Message-ID: <8BR9JTC@wedel.hanse.de>
- Organization: None - the genius overlooks the chaos
- References: <bsw.10.0@utrcv1.res.utc.com> <1992Dec8.221502.29817@actrix.gen.nz>
- Date: Sat, 12 Dec 1992 16:17:59 GMT
- Lines: 19
-
- 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 ;-)
-
- --
- Jan H. Haul Tel. +49 40 - 890 57 57 Disc.: Not even *my*
- Hamburg, Germany Fax +49 40 - 890 51 57 opinion
-