File Type Exe

Posted on
-->

A file with an executable file extension means that the file format supports some ability to run an automatic task. This is in contrast to other file formats that just display data, play a sound or video, or otherwise present content without running a system command. Set the Content Type value to the file type's MIME content type. OpenWithList: Do not use. This subkey contains one or more application subkeys for applications that appear in the Open with dialog box entry for the file type and is intended only for.exe applications on operating systems prior to Windows XP. Use OpenWithProgIds instead. There are many different file extensions. For example, audio files may have a file extension like.mp3,.aac,.wma,.flac,.ogg, or many other possibilities depending on what type of audio file they are. Setting Windows to show file extensions is helpful for security. For example, the.exe file extension is one of many file extensions that Windows runs as a program. If you can’t see what a file’s extension is, it’s hard to tell whether it’s a program or a safe document or media file.

This topic explains how to create new file types and how to associate your app with your file type and other well-defined file types. Files with a shared common file name extension (.doc, .html, and so on) are of the same type. For example, if you create a new text editor, then you can use the existing .txt file type. In other cases, you might need to create a new file type.

This topic is organized as follows:

  • Registering a File Type

Additional information can be found on the following topics:

Public and Private File Types

Public file types are also known as popular or contentious types because competing applications might want to be associated with these file types. Characteristics of public file types include:

  • They are typically defined by standards bodies, and/or are promoted by their defining organizations as interchange formats.
  • They are often exchanged between computers and users for diverse purposes.
  • They need to be supported on many different platforms.
  • Applications from multiple vendors are likely to handle them.

Some examples of file types that are considered public are the image file types .png, .gif, .jpg, and .bmp, and the audio types .wav, .mp3, and .au.

Unlike public file types, private or proprietary file types typically have a format that is implemented and understood by only one application or vendor. As a result, private file types are typically not prone to conflicts between applications. Some file types can start as private file types but later become public file types.

Note

Windows does not differentiate between public and private file types. The distinction is relevant only in making decisions about your choice of file type registration.

Registering a File Type

To associate the file type with an existing application, locate the application ProgID in the registry. To associate the file type with a new application, define a ProgID for your application. For information about defining a new ProgID, see Programmatic Identifiers.

File name extension subkeys have the following general form: extension=ProgID. File name extension subkeys are stored in the HKEY_CLASSES_ROOT subtree.

It is important to include the leading period (.) when creating file type subkeys in the registry. For example, if you want a file type with the short extension .myp and the long extension .myp-file to be opened with an application called MyProgram, use the following syntax:

As demonstrated in the preceding example, if you also register a short file name extension (.myp), you should create a subkey for the long extension (.myp-file) as well. For more information, see File Type Handlers.

Setting Optional Subkeys and File Type Extension Attributes

File type extension entries in the registry have several optional subkeys and attributes.

The file type extension entries that are used by file associations are described in the following table. All values are of the REG_SZ type.

Registry entryAction
DefaultSet the default value of the extension subkey to the ProgID to which it is linked.
Content TypeSet the Content Type value to the file type's MIME content type.
OpenWithListDo not use. This subkey contains one or more application subkeys for applications that appear in the Open with dialog box entry for the file type and is intended only for .exe applications on operating systems prior to Windows XP. Use OpenWithProgIds instead.
OpenWithProgIdsThis subkey contains a list of alternate ProgIDs for this file type. The programs for these ProgIDs appear in the Open with menu and are available as default Windows Store apps for the file type. Whenever an application takes over this file type by changing the default value, it should also add an entry to this list.
PerceivedTypeSet the PerceivedType value to the PerceivedType to which the file belongs, if any. This string is not used by Windows versions prior to Windows Vista. For more information, see Perceived Types and Application Registration.

The general form of a file name extension subkey is as follows. All entry types are of the REG_SZ type.

Important considerations about file types include:

  • The HKEY_CLASSES_ROOT subtree is a view formed by merging HKEY_CURRENT_USERSoftwareClasses and HKEY_LOCAL_MACHINESoftwareClasses

  • In general, HKEY_CLASSES_ROOT is intended to be read from but not written to. For more information, see the HKEY_CLASSES_ROOT article.

  • To register a file type globally on a particular computer, create an entry for the file type in the HKEY_LOCAL_MACHINESoftwareClasses subkey.

    Tamil 2017 Movies Download, Tamil 2017 Movies tamilyogi, Tamil 2017 Movies tamilrockers, tamilyogi, tamilyogi 2019, tamilyogi pro MyTamilYogi, tamilyogi, tamilyogi 2019, tamilyogi pro Tamil 2017 Movies Download TamilRockers. TamilRockers, Tamilrockers HD Movies Download. KuttyRockers.Net Movie For Quality. TamilRockers, Tamilrockers HD Movies Download. Tamil Dubbed 2017 Movies. Tamil Dubbed Yearly Collections. English Movies. English Movies (New) Request Movies (Must Ask) Page Tags. TamilRockers, Tamilrockers HD Movies Download. TamilRockers Movies Download TamilRockers 2017 Movies Download TamilRockers Mobile Movies Download TamilRockers HD Movies Download TamilRockers 1080p HD & 720p HD Movies Download TamilRockers.Net New Mobile Movies TamilRockers 700Mb Movies Download TamilRockers 2018 Movies Download TamilRockers Home Page, TamilRockers Torrent Download. Tamilrockers 2017 full hd movies download. TamilRockers Movies Download uTorrent, TamilRockers 2018 HD Movies Download, TamilRockers 2018 New Tamil films DVDRip Download, TamilRockers Songs free Download, TamilRockers HD 1080p Movies Free Download, Free Download Tamil Movies in HD Quality For Mobile, TamilRockers Video Songs Download, TamilRockers Forum, TamilRockers 2017 Mp4 MKV HDRip 720p 1080p Movies Free Download. Tamil HD Movies Donwload, TamilRockers Dubbed Movies Download, HDMoviesTamil 2019 Latest MP4 HD Movies Download, HDMoviesTamil Tamil Dubbed HD 720p Movies Download, TamilRockers 3Gp MP4 MKV Mobile PC Movies Download,TamilGun HD Movies Download Tamil 720p 1080p HDRip DVDRip Movies Download, TamilRockers HD Movies Download, Tamil Rockers 2018 Latest HD Tamil Movies Download.

  • To make a file type registration visible to the current user only, create an entry for the file type in the HKEY_CURRENT_USERSoftwareClasses subkey.

  • An application can provide its own implementation of a verb, such as open or play, as shown in the following registry example.

    Subkeys of the verb subkey include the command line and the drop target method: command and DropTarget.

  • When you create or change a file association, it is important to notify the system that you have made a change. Do so by calling SHChangeNotify and specifying the SHCNE_ASSOCCHANGED event. If you do not call SHChangeNotify, the change may not be recognized until after the system is rebooted.

  • To retrieve registry information regarding a file association, use the IQueryAssociations interface. For a scenario that illustrates this procedure, see File Association Sample Scenario.

Note

Both the App Paths and Applications registry subkeys are used to register and control the behavior of the system on behalf of applications. For more detailed information about this functionality, see Application Registration.

Deleting Registry Information During Uninstallation

When uninstalling an application, the ProgIDs and most other registry information associated with that application should be deleted as part of the uninstallation. However, applications that have taken ownership of a file type (by setting the Default value of the file type's HKEY_CLASSES_ROOT.extension subkey to the ProgID of the application) should not attempt to remove that value when uninstalling. Leaving the data in place for the Default value avoids the difficulty of determining whether another application has taken ownership of the file type and overwritten the Default value after the original application was installed. Windows respects the Default value only if the ProgID found there is a registered ProgID. If the ProgID is unregistered, it is ignored.

Note that other file-type ownership information is stored in the HKEY_CURRENT_USERsubtree and also is used only when the application that it references is registered. Therefore, this data does not need to be removed when uninstalling an application.

As an example, the following shows the state of the registry before an application is uninstalled:

The following shows the state of those same registry entries after the application has been uninstalled.

File Types That Support Open Metadata

In Windows 7 and later, the following file types support open metadata.

File typeFile name extensions
Office 2007 Documents.docx, .xlsx, .pptx
Office 97-2003 Documents.doc, .xls, .ppt
Saved Search.search-ms
Windows Media-based formats (Advanced Streaming Format (ASF) container).wmv, .wma
MP4 (property handler).mp4, .m4a, .m4v, .mp4v, .m4p, .m4b, .3gp, .3gpp, .3gp2, .mov

Excel File Type

Related topics

(Redirected from EXE)

An EXE file contains an executable program for Windows. EXE is short for 'executable,' and it is the standard file extension used by Windows programs. For many Windows users, EXE files are synonymous with Windows programs, making '.exe' one of the most recognizable file extensions.[1]

  • 1File formats

File formats[edit]

There are several file formats which may be used by a file with a .exe extension:

DOS[edit]

16-bit DOS MZ executable
The original DOS executable file format. These can be identified by the letters 'MZ' at the beginning of the file in ASCII.
16-bit New Executable
Introduced with the multitasking MS-DOS 4.0 and also used by 16-bit OS/2 and Windows, NE can be identified by the 'NE' in ASCII.

OS/2[edit]

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.[2] They are also used by some DOS extenders.
Mixed 16/32-bit Linear Executable
Introduced with OS/2 2.0, these can be identified by the 'LE' in ASCII. This format is used for VxD drivers under Windows 3.x, OS/2, and Windows 9x; it is also used by some DOS extenders.

Windows[edit]

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 known as DOS stub.[3][4] Started in DOS the stub typically displays a message 'This program cannot be run in DOS mode' (or similar) before exiting cleanly, this thereby constituting a minimal form of fat binary. A few dual-mode programs (MZ-NE or MZ-PE) such as regedit[5] and older WinZIP self extractors include a more functional DOS section.[6]

32-bit Portable Executable
Introduced with Windows NT, these can be identified by the 'PE' in ASCII (although not at the beginning; these files also begin with 'MZ').[7]
64-bit Portable Executable (PE32+)
Introduced by 64-bit versions of Windows, this is a PE file with wider fields. In most cases, code can be written to simply work as either a 32 or 64-bit PE file.[8]

Other[edit]

Besides these, there are also many custom EXE formats, including but not limited to 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 byPhar Lap extenders).[9]

See also[edit]

File Type Excel

References[edit]

  1. ^'.EXE File Extension'. FileInfo - The File Extensions Database. Sharpened Productions. Retrieved 2019-08-16.
  2. ^'OS/2 Operating System'. operating system documentation project. 2004-04-03. Retrieved 2014-02-13.
  3. ^'/STUB (MS-DOS Stub File Name) Linux/Mac cannot run an exe file'. MSDN. Microsoft. Retrieved 2014-01-10.
  4. ^Sedory, Daniel B. (2004-10-12). 'DOS Stub Program'. The Starman's Realm. Self-published. Retrieved 2014-01-10.[self-published source]
  5. ^'Using Registry Editor in Real Mode'. Support. Microsoft. 2006-11-15. Archived from the original on 2014-01-15. Retrieved 2014-01-10.
  6. ^Ellermann, Frank (2014-01-22). 'dostub.exe'. Purl.net. Retrieved 2014-01-24.
  7. ^'PE Format'. Windows Dev Center. Microsoft. 2019-08-25.
  8. ^Pietrek, Matt (February 2002). 'An In-Depth Look into the Win32 Portable Executable File Format'. MSDN Magazine. Microsoft.
  9. ^Brown, Ralf (2000-07-16). 'Int 21/AH=4Bh'. Ralf Brown's Interrupt List. Retrieved 2018-10-30.

File Type Exe File

Further reading[edit]

  • Paul, Matthias R. (2002-10-07) [2000]. 'Re: Run a COM file'. Newsgroup: alt.msdos.programmer. Archived from the original on 2017-09-03. Retrieved 2017-09-03.[1]

External links[edit]

Retrieved from 'https://en.wikipedia.org/w/index.php?title=.exe&oldid=915976331'