EXE

From Wikipedia, the free encyclopedia

(Redirected from .exe)
Jump to: navigation, search

EXE is the common filename extension for denoting an executable file (a program) in the OpenVMS, DOS, Microsoft Windows, ReactOS, and OS/2 operating systems.

Besides the executable program itself, many EXE files contain other components called resources, such as bitmaps and icons which the executable program may use for its graphical user interface.

The DOS executable file format differs from the COM executable, which is limited to slightly less than 64 KiB in size and since it lacks relocation information, can only contain one code segment. The DOS executable header contains such relocation information, which allows multiple segments to be loaded at arbitrary memory addresses, and support executables larger than 64 KiB.

There are several main EXE file formats.

  • DOS executable: These can only be identified by the ASCII string "MZ" or the hexadecimal 4D 5A at the beginning of the file (the "magic number"). These executables can be run from DOS, and most Windows versions can execute them using a sort of emulation. "MZ" are the initials of Mark Zbikowski, one of the developers of MS-DOS.
  • 16-bit New Executable: Introduced with Multitasking MS-DOS 4.0, these can be identified by the "NE" in ASCII. These cannot be run by any other version of DOS but can be run by all Windows and OS/2 versions[citation needed].
  • Mixed 16/32-bit Linear Executable: Introduced with OS/2 2.0, these can be identified by the "LE" in ASCII. This format is not used for OS/2 applications anymore, but instead for VxD drivers under Windows 3.x and Windows 9x, and by some DOS extenders.
  • 32-bit Linear Executable: Introduced with OS/2 2.0, these can be identified by the "LX" in ASCII. These can only be run by OS/2 2.0 and higher[citation needed]. They are also used by some DOS extenders.
  • 32-bit Portable Executable: Introduced with Windows NT, these are the most complex[citation needed] and can be identified by the "PE" in ASCII. These can be run by all versions of Windows NT, and also Windows 95 and higher, partially also in DOS using HX_DOS_Extender. They are also used in BeOS R3, however the format used by BeOS somewhat violates the PE specification as it doesn't specify a correct subsystem[citation needed].
  • 64-bit Portable Executable: Introduced by 64-bit versions of Windows, these are PE files with a CPU type corresponding to a 64-bit instruction set such as x86-64 or IA-64. These can only be run by 64-bit editions of Microsoft Windows, such as Windows XP 64-Bit Edition or Windows Server 2003 64-Bit Edition, running on machines with the CPU type specified in the file.

Besides these, there are also many custom EXE formats, such as W3 (a collection of LE files, only used in WIN386.EXE), W4 (a compressed collection of LE files, only used in VMM32.VXD), DL, MP, P2, P3 (last three used by Phar Lap extenders), and probably more[citation needed].

When a 16-bit or 32-bit Windows executable is run by Windows, execution starts at either the NE or the PE, and ignores the MZ code. On the other hand, DOS cannot (except using HX DOS Extender for PE files only) execute these files. To prevent DOS from crashing, all Windows executable files must start with a working DOS program called a stub.[citation needed]. Normally this program simply displays the simple message "This program cannot be run in DOS mode" (or similar), but there are a few dual-mode programs (MZ-NE or MZ-PE) (such as regedit) have a usable DOS section[citation needed].

In Microsoft Windows, a user can expect that double-clicking on an exe file will open a program, unless it is incompatible or broken. This is useful in avoiding computer viruses. If a user receives a file that claims to be a picture or document, but it has the ".exe" extension, it is likely to be a virus or Trojan horse that the sender is trying to trick them into running. This does not mean that all .exe files are viruses or trojans, merely that many viruses and trojans appear in the form of .exe files.


Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.