Mail Archives: djgpp/1998/04/19/10:34:02
Vic wrote:
>
> Weiqi Gao wrote:
> > Oh-oh, intellegent life detected!
>
> :) he he
>
> > > renaming the exe to com will NOT crash the computer.
> > > Why don't you try for yourselves? It's THAT easy. It works on my machine
> > > anyways.
> >
> > But why?
>
> I think the win95 loader scans the file, it no longet looks at the
> extention. I think it looks for the EXE header, and if it doesn't find
> it, it assumes it's a com. Just relying on the extention would be stupid
> (but we ARE talking about microsoft)
Even under plain DOS the extension COM or EXE makes no difference. DOS
checks to see if the magic string "MZ" is present; then it treats the
program as an executable, otherwise it loads it as a COM file ( 1
segment, code + data must be less than 64K -- tiny model for old Turbo
C users).
BTW 4dos.com, ndos.com and some other similar command interpreters are
actually EXE's in disguise :-)
Cheers,
--
------------ Elliott Oti ---------------
------------- http://www.fys.ruu.nl/~oti ---------
- Raw text -