Computer Hope

Microsoft => Microsoft Windows => Windows 3.x/9x/ME => Topic started by: Jen1974 on November 04, 2012, 09:58:48 PM

Title: DOD 5.0 Issue
Post by: Jen1974 on November 04, 2012, 09:58:48 PM
I’m hoping someone here can point me in the right direction. I have an old computer system (1993 Vintage) that is running dos 5.0. I have an application that automatically runs when the computer boots. The software works fine when running on the old system although every once in a while this error does pop up. I use this application a lot and wanted to see if it would work running on newer computer. I created a mirror copy of the older drive and formatted a newer hard drive. (It’s an exact mirror i.e. fat file system, hard drive size etc…)

Everything looked like it was going to work out fine until I went to a new menu and the program crashed. I can reboot the system and use it for a short while before getting caught in the same loop. When the program crashes, I’m prompted to enter the time and date or press enter to continue.  I have entered a time and day, as well as just pressing enter, the results are the same. I believe I found the file that generates the loop; however what I am unsure of is why.

Here is the line in the .bat file that either starts the program or this time & date loop.

Code: [Select]
if errorlevel 200 goto ERROR
if errorlevel 100 goto START
goto END

I don’t know what the errorlevel 200 is referring to, or what conditions cause an error level 200. Anyone have any ideas on what I should look into next.
Title: Re: DOD 5.0 Issue
Post by: Salmon Trout on November 05, 2012, 02:29:40 AM
The batch script is testing a value returned by a program or command. Errorlevels are not always a sign of an actual "error" or problem, so the immediately preceding line of the batch file (before the first if "errorlevel" line) will tell you what is the source of the return code. In general errorlevels such as this are tailored by the program creator so an idea of what it is will be helpful. Best of all if you post the entire batch script, else we are just guessing here.