On 18 Apr 2006 at 15:08, Rick Cogan wrote:

> ----- Original Message ----- 
> From: "Bernie Cosell" <[EMAIL PROTECTED]>

> > How cool and how simple... but this is very strange.  I can't imagine
> > what "MZP" is about [or why the poster thinks that that's what the OS is
> > looking for]:
> >
> > C:\DOCUME~1\Bernie>type donothing.exe
> > FOO
> >
> > C:\DOCUME~1\Bernie>donothing.exe
> >
> > C:\DOCUME~1\Bernie>echo ABC>donothing.exe
> >
> > C:\DOCUME~1\Bernie>donothing.exe
> >
> > C:\DOCUME~1\Bernie>type donothing.exe
> > ABC
> >
> > BUT: if I do
> >
> > echo xyz>donothing.exe
> >
> > and I try to execute it, I get a popup with:
> >
> > command Prompt - donothing.exe
> > The NTVDM CPU has encountered an illegal isntruction
> > ....
> >
> > However, just
> >
> > echo AA >donothing.exe
> > and
> > echo A >donothing.exe
> >
> > Both work just fine.
> >
> > trange... :o)  But cute...
> >
> 
> 
> MZ is the "magic number" for windows executables, found in the first 2 bytes 
> of the file. It must be followed by another character, thus the MZP that the 
> poster provided, could be MZ followed by any character.

Hmm..  I figured that MZ had to be something along those lines but I 
don't understand why it doesn't do anything.  I'd have thought that the 
OS would try to _execute_ whatever "P" turns into and I'd have guessed 
that it would've done something improper [as my "xyz", above, does].  
That also doesn't account for why FOO AA and A<newline> also do 
nothing...  [not that it matters... it is just fun that it works... :o)]

   /Bernie\
-- 
Bernie Cosell                     Fantasy Farm Fibers
mailto:[EMAIL PROTECTED]     Pearisburg, VA
    -->  Too many people, too few sheep  <--       

--
                ----------------------------------------
The WIN-HOME mailing list is powered by L-Soft's renowned
LISTSERV(R) list management software. For more information, go to:
http://www.lsoft.com/LISTSERV-powered.html

Reply via email to