Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#36 Batch files run themselves

v0.55
closed
Sjoerd
None
5
2012-09-07
2002-08-30
Justin Kerk
No

In DosBox, batch files that specify their own name as a
command run themselves instead of the corresponding exe
or com program, unlike in DOS. As an example, the
loader kq1.bat for King's Quest I looks like this:

cd \sierra\kq1
kq1 %1 %2 %3 %4 %5

In DOS, this runs the kq1.com game. In DosBox, it
repeatedly runs itself.

Discussion

  • Sjoerd
    Sjoerd
    2002-08-31

    Logged In: YES
    user_id=153968

    Hmm might be that i got priority wrong that it's .com .bat .exe in checking
    which files are executable, i'll need to check with dos a bit.

     
  • Justin Kerk
    Justin Kerk
    2002-08-31

    Logged In: YES
    user_id=134009

    I did some tests, and it seems that the order is actually
    .com .exe .bat.

     
  • Sjoerd
    Sjoerd
    2002-09-04

    Logged In: YES
    user_id=153968

    Hmm changed the order to .com .exe .bat now, that should fix it.