Path: utzoo!news-server.csri.toronto.edu!rutgers!uwm.edu!cs.utexas.edu!uunet!seismo!ukma!s.ms.uky.edu!neil From: neil@ms.uky.edu (Neil Greene) Newsgroups: comp.os.msdos.misc Subject: Bath file progamming Keywords: bat, batch Message-ID: Date: 9 Mar 91 17:25:52 GMT Organization: University of Kentucky Computing Center Lines: 25 I have a batch file I would like to write for our local network. The outline is something like this: setup necessary variables specific to machine_name : login /*label: attempt to login to server */ get user_name and password if %error_level% is ok, go to resources if %error_level% ~ok, issue error and attempt to login again : resources grab network resources check user mail My problem is this, everything is fine logicly, and would be great, BUT batch files cannot trace BACKWARDS. How can I implement this using a batch file and allow this type of error checking? The resources should not be allocated, UNLESS we have a valid user and password. If user and password are not ok, I wish to issure login prompt again. -- Neil Greene --- University of Kentucky Mathmatics and Sciences University of Kentucky Computing Center neil@s.ms.uky.edu & neil@graphlab.cc.uky.edu (NeXT Attachments)