----- Original Message ----- From: "Bernie Cosell" <[EMAIL PROTECTED]>
Sent: Tuesday, April 18, 2006 13:40


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. This file then fools windows into thinking it is executable and does nothing.

wikipedia reference: http://en.wikipedia.org/wiki/Magic_number_(programming)

Regards,
*************************************
Rick Cogan from Melbourne, FL
[EMAIL PROTECTED]


--
               ----------------------------------------
WIN-HOME Archives:  http://PEACH.EASE.LSOFT.COM/archives/WIN-HOME.html
Contact the List Owner about anything:  [EMAIL PROTECTED]
Official Win-Home List Members Profiles Page
http://www.besteffort.com/winhome/Profiles.html

Reply via email to