Mail Archives: djgpp/1997/04/18/08:27:47
From: | Erik Max Francis <max AT alcyone DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: rerunning...
|
Date: | Thu, 17 Apr 1997 22:28:41 -0700
|
Organization: | Alcyone Systems
|
Lines: | 19
|
Message-ID: | <33570689.302E394F@alcyone.com>
|
References: | <01bc4b9b$f3260320$28baf8ce AT didi>
|
NNTP-Posting-Host: | newton.alcyone.com
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Ian Mausolus wrote:
> I assume that the secret lies in the way batch files work... Does
> anybody
> have any input on this?
That's probably the way to do it under DOS. Have a program which returns
a value from main dependent on whether it should be rerun or not. Write a
batch file wrapper around the program which detects the "error level" and
reruns it if it isn't the sentinel to mean "No, I'm really done, don't run
me again."
--
Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com
Alcyone Systems / web / http://www.alcyone.com/max/
San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W
\
"The future / is right there."
/ Bill Moyers
- Raw text -