For my script to work for keeping MIS up, it needs to have a unique name (now MIS & MIS2 are the same name). Could you possibly add " v2" or something to the
title? MIS finally shut itself down for no reason so I need my script
For my script to work for keeping MIS up, it needs to have a
unique name (now MIS & MIS2 are the same name). Could you
possibly add " v2" or something to the title? MIS finally shut
itself down for no reason so I need my script
I am assuming you're using Windows and a batch file? If you want a
MIS loop you'd look at the errorlevels and then loop if its not a
"normal" exit (255, 10 and 1 are normal exits):
For my script to work for keeping MIS up, it needs to have a
unique name (now MIS & MIS2 are the same name). Could you
possibly add " v2" or something to the title? MIS finally shut
itself down for no reason so I need my script
I am assuming you're using Windows and a batch file? If you want a
MIS loop you'd look at the errorlevels and then loop if its not a
"normal" exit (255, 10 and 1 are normal exits):
:start
mis
if errorlevel 255 goto done
if errorlevel 10 goto done
if errorlevel 1 goto done
goto start
:done
Almost {chuckle} the above script will restart ONLY if the errorlevel is
0 since in a batch file "if errorlevel" translates into "if errorlevel
is equal to or higher than" ... The only question I have is errorlevel
0, a normal exit by most standards. How does MIS & MIS2 use zero exits,
if at all?
Anything else is not normal...
If the program crashes and exits unexpectedly, it will exit with a 0
which means no exitlevel. When you encounter that exit, you should
reload it. If you encounter a known exit, it should exit gracefully.
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 2 |
Nodes: | 8 (0 / 8) |
Uptime: | 67:47:57 |
Calls: | 2,119 |
Files: | 11,149 |
D/L today: |
45 files (9,960K bytes) |
Messages: | 950,556 |