On Thu, 13 Sep 2001 02:38:23 -0400 (EDT), Thomas Mueller wrote:
> from L.D. Best:
>> According to F-6, the file name is majority.bat with not extensions
>> beyond that.
>> It is NOT a text file; it is an executable of some sort ... binary
>> except for a few words here and there... including "this program cannot
>> be run in DOS mode" or words to that effect.
> Windows recognizes more filename extensions as executable than does DOS, such
> as .pif and .scr. Can a file in Windows .EXE format have a name ending in
.BAT
> and still be recognized as an .EXE? I could ask the same question regarding
> DOS, since I never tried to run a file whose name ended in .BAT when it was
> really a .COM or .EXE.
Regarding the behavior of executables running in DOS, it doesn't
matter whether the file has a COM, EXE, or BAT extension. If you type
the name of the file at the command prompt and omit the file extension
and then press enter, the program will run if it is in the search path.
I think you are already well aware of that, Thomas. I don't know why
you could ask the same question regarding DOS. Maybe I misunderstood
your question. BTW, if you rename a DOS program being a COM file or an
EXE file to a BAT file and then try to run it in DOS, some parts of
the program might run in some buggy fashion. I have found this out by
experimentation. Is this what you really wanted to know about? Well,
I have told you what happens. I don't know if it is safe in all cases
to conduct such experiments.
Sam Heywood
-- See our Big Gizmotimetemp at
-- http://banners.wunderground.com/banner/gizmotimetempbig/US/VA/Mt_Jackson.gif