MS-DOS EXE

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Links)
Line 10: Line 10:
  
 
== Identification ==
 
== Identification ==
An MS-DOS EXE file begins with an ASCII signature of "<code>MZ</code>" or, rarely, "<code>ZM</code>". The 16-bit integer at offset 24 (relocation table offset) is ''usually'' (but apparently not always) less than 64, and at least 28. A value of 64 or more, or 0, suggests the format may not be MS-DOS EXE.
+
An MS-DOS EXE file begins with an ASCII signature of {{magic|'M' 'Z'}} or, rarely, {{magic|'Z' 'M'}}. The 16-bit integer at offset 24 (relocation table offset) is ''usually'' (but apparently not always) less than 64, and at least 28. A value of 64 or more, or 0, suggests the format may not be MS-DOS EXE.
  
 
It's not clear whether there is any completely reliable way to identify an MS-DOS EXE, except in the negative (i.e. it begins with "MZ", and is not a valid [[NE]], [[PE]], etc., file).
 
It's not clear whether there is any completely reliable way to identify an MS-DOS EXE, except in the negative (i.e. it begins with "MZ", and is not a valid [[NE]], [[PE]], etc., file).

Revision as of 18:55, 13 March 2015

File Format
Name MS-DOS EXE
Ontology
Extension(s) .exe
PRONOM x-fmt/409

MS-DOS EXE is an executable file format used mainly by MS-DOS. It is the successor to COM. A number of other EXE formats are based on it.

Its name has many variations, such as DOS MZ executable. It is also called MZ, though that name might include hybrid formats (NE, PE, etc.) that also use the "MZ" signature.

Identification

An MS-DOS EXE file begins with an ASCII signature of 'M' 'Z' or, rarely, 'Z' 'M'. The 16-bit integer at offset 24 (relocation table offset) is usually (but apparently not always) less than 64, and at least 28. A value of 64 or more, or 0, suggests the format may not be MS-DOS EXE.

It's not clear whether there is any completely reliable way to identify an MS-DOS EXE, except in the negative (i.e. it begins with "MZ", and is not a valid NE, PE, etc., file).

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox