VOGONS


First post, by tomexplodes

User metadata
Rank Member
Rank
Member

Just as an example, I made a doom.bat file so I could install and uninstall novert.com before and after running doom.exe, but simply typing doom runs the executable, not the batch file. This is no big deal, I renamed doom.exe to doom1.exe and did it that way, so it's not something that's necessary, but I was just curious. Thank you!

1.) MS-DOS 6.22, Pentium 233mhz, 32mb RAM, S3 Trio64, Sound Blaster Pro 2
2.) Windows 98SE with Unofficial SP3, AMD Athlon 1.3ghz, 768mb RAM, Geforce 4 MX 440 64mb AGP, Sound Blaster Live! Value

Reply 1 of 9, by Jo22

User metadata
Rank l33t++
Rank
l33t++

It's a matter of the command line interpreter (CLI) .
By default, DOS uses command.com, which uses this order:
.com
.exe
.bat

On Windows, there's PATHEXT= variable, also.

https://stackoverflow.com/questions/605101/or … -a-bat-vs-a-cmd

You may want to try an alternate CLI, such as 4DOS.
Maybe it can be configured in a way that suits your needs. 😀

Edit: Alternatively, there are also batch file converters.
They "compile" batch files and create COM or EXE files.
They can be find in shareware archives (simtel, night owl etc) online or on old CDs.

"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//

Reply 2 of 9, by tomexplodes

User metadata
Rank Member
Rank
Member

Okay, good to know. Like I say, not difficult to work around, just wanted to know. Thanks for the info! I'll take a look at 4DOS.

1.) MS-DOS 6.22, Pentium 233mhz, 32mb RAM, S3 Trio64, Sound Blaster Pro 2
2.) Windows 98SE with Unofficial SP3, AMD Athlon 1.3ghz, 768mb RAM, Geforce 4 MX 440 64mb AGP, Sound Blaster Live! Value

Reply 5 of 9, by dr_st

User metadata
Rank l33t
Rank
l33t
Errius wrote on 2020-10-24, 18:50:

I've always put program launching batch files in C:\DOS.

I always put them in C:\BATCH and put C:\BATCH first in PATH.

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 7 of 9, by Errius

User metadata
Rank l33t
Rank
l33t
Jo22 wrote on 2020-10-24, 18:08:
It's a matter of the command line interpreter (CLI) . By default, DOS uses command.com, which uses this order: .com .exe .bat […]
Show full quote

It's a matter of the command line interpreter (CLI) .
By default, DOS uses command.com, which uses this order:
.com
.exe
.bat

What does DOSBox do if there's also an internal DOSBox command with the same name as an external file?

I seem to remember problems from having LOADFIX.COM on my system. It had different syntax to the DOSBox command and was launched first. This caused much confusion until I realized what was happening.

Is this too much voodoo?