Solved

Expansion

Posted on 1998-11-09
3
152 Views
Last Modified: 2010-04-27
Why do exe files have signature "MZ" ?      What is the expansion for "MZ" ?
0
Comment
Question by:jameen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Expert Comment

by:Nanos
ID: 1012271
Please explain more on what you mean.. what is this signature?
0
 
LVL 10

Accepted Solution

by:
MasseyM earned 100 total points
ID: 1012272
The MZ are initials fo one of Microsoft's lead programmers that was instrumental in the compilation of code.  

Check this article:
http://www-personal.monash.edu.au/~damcc5/doswin/dosexec.htm
0
 
LVL 3

Expert Comment

by:vikiing
ID: 1012273
As Massey said, they're the initials of the guy's name who worked on that matter at Microstuff (some centuries ago).

The main purpose of those letters "MZ" that appear as the two first bytes of every .EXE file, is to differentiate the .EXE from a .COM file.

Althoug both of them are binary files, and whose contents are intended to be executed directly by the machine (in fact, both of them contain binary instructions understood by the processor), they receive different treatment. A real .EXE file is slightly different from a .COM

If you RENAME a .COM file as if it were a .EXE, operating system ignores that fact, 'cause it doesn't regard of extension itself (.COM / .EXE). When file is loaded into memory, op.sys. checks the first two bytes, if they are "MZ", file is treated as a .EXE one; if not, file is treated as .COM


0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Looking for a laptop computer  that match my needs 5 66
assignment of laptops - risks 6 104
base to cord ratio 3 48
Problem with sound with Bose headset 4 67
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
This is about my first experience with programming Arduino.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question