Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!midway!valley From: valley@uchicago (Doug Dougherty) Newsgroups: comp.os.msdos.misc Subject: Re: Bath file progamming Keywords: bat, batch Message-ID: Date: 12 Mar 91 01:34:15 GMT References: Sender: news@midway.uchicago.edu (News Administrator) Organization: University of Chicago Lines: 22 neil@ms.uky.edu (Neil Greene) writes: >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? What do you mean "batch files cannot trace BACKWARDS" ? Are you saying that you don't think you can goto a label preceding the current position in a DOS batch file? If so, you should try it sometime...