Sam - 

What happens if you also have a file named BASIC.BAT in the same directory?
Which one runs in that case?

Dave

"Samuel W. Heywood" <[EMAIL PROTECTED]> wrote:
On Thu, 18 Jan 2001 01:36:42 -0400, Clarence Verge wrote:

> Hello All;

> Or wrote something about DOS not caring about file extensions.

> I wrote some (mostly true) crap about the difference between .com
> and .exe.

> It turns out that in 20 years of using this DOS based stuff I had
> never tried to just swap the extensions and see what happens.
> Actually, it STILL seems like a dumb thing to do, and without some
> prodding from Glenn I would still be quite happy in my ignorance.

> Regardless of the different internal formats, in all versions of
> DOSs tested from PC3.3 to MS6.22 and Glenn's newkid XXX, programs
> load and run perfectly even if you swap the exe and com extensions.

I think this discussion should include mention of the fact that an
executable file having a COM extension will be found and executed
*before* a file with the same name having a EXE extension.  (i.e.,
if for example you have a program named BASIC.COM and also one named
BASIC.EXE in your C:\DOS directory, and C:\DOS is included in your
path variable, and if you type in the word "basic" at the command line,
then BASIC.COM is the program that will be executed.)

Sam Heywood

-- This mail sent by Arachne, www graphical browser for DOS
-- Visit the Arachne DOS Browser Home Page, http://home.arachne.cz


____________________________________________________________________
Get free email and a permanent address at http://www.amexmail.com/?A=1

Reply via email to