VOGONS


First post, by aquasync3

User metadata
Rank Newbie
Rank
Newbie

Not exactly a big problem, but some games/progs have both an exe and bat with the same name, and tell you to just type the name to run it. In real dos this runs the batch file, but currently in dosbox it is the other way around. Not sure what the priority of .com's are, but that could be easily checked too.
Of course you can just call the .bat explicitly, but it'd be nice to fix this...

Reply 2 of 14, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

as far as I know are our priorities correct.

Water flows down the stream
How to ask questions the smart way!

Reply 3 of 14, by dvwjr

User metadata
Rank Member
Rank
Member

The way DOSBOX works is the way that real DOS works. Since DOS 2.x the Command.com execution order has been *.COM, *.EXE, *.BAT.

See this older thread here on the same subject. The *.BAT before *.COM and *.EXE went out with PCDOS 1.x in the early 1980s.

dvwjr

Reply 4 of 14, by avatar_58

User metadata
Rank Oldbie
Rank
Oldbie

Hm....thats odd. Playing many sierra games I am sure .bat loaded first before the others even in the later dos 6. 😖 In fact I'm sure it did...

Reply 5 of 14, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

Agreed. I remember that too, that batch files took preference. But, who is right? I have not documented myself.

Reply 7 of 14, by XulChris

User metadata
Rank Member
Rank
Member

I seem to remember the order being .BAT .EXE .COM. Even if that is not what the original DOS did, it is the order which makes most sense.

Reply 8 of 14, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

"There can only be one..."

An .EXE and an .BAT

commandprioindos17hr.th.png

The .EXE takes precedence:

commandprioindos28yr.th.png


Thanks to ImageShack for Free Image Hosting

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 9 of 14, by Guest

User metadata

Is bochs the exact same as original dos prompt? I'm not argueing my guess but I just remember haveing many games which had batch files in the dir with the same name and they took preference (you could tell because they always had echo off and soemtimes %1 %2 %3)

Oh well, you get corrected every day! 😮

Reply 10 of 14, by avatar_58

User metadata
Rank Oldbie
Rank
Oldbie

sorry...that /\ was me I just hit post without logging in 😅

Reply 11 of 14, by MiniMax

User metadata
Rank Moderator
Rank
Moderator
Anonymous wrote:

Is bochs the exact same as original dos prompt?

Define: "original dos" 😀

Bochs is a pure CPU/screen/sound/network/disk emulator. It will (theoritically) run any OS you throw at it. The shoots I took, was with Bochs running DOS from Win95 OSR2.

win95dospromptbochs4yl.th.png welcometowindows95bochs8wd.th.png

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 13 of 14, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

On the other hand, it has always seem stupid to me naming a batch file with the same name as its EXE counterpart. 😁

Reply 14 of 14, by aquasync3

User metadata
Rank Newbie
Rank
Newbie

Oops, I could swear I double-checked this before posting, but I can't seem to replicate it now... 😒