HOW TO: Change the Default Action for a File Type in Windows XP

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article was previously published under Q320036
This article has been archived. It is offered "as is" and will no longer be updated.
This step-by-step article describes how to change the default action for a file type in Windows XP.

The default action for a file type is the action that occurs when you double-click the file. The file type is determined by the file's extension, and all files that have the same extension have the same default action. The most common default action for document files is Open, which launches the associated program and displays the file in the program's window.

NOTE: To determine the default action of a file type, right-click the file listing. The command that is shown in boldface on the shortcut menu is the default action.

For some file types, the default action may be undesirable, or even dangerous. For example, a registry file (.reg) has the default action Merge, which sends the data in the file to the registry, and replaces existing registry values or adds to existing registry values. The Edit command is available on the shortcut menu for a .reg file, but it is not the default action. If you want the default action for a .reg file to be Edit, and require that users right-click to view the shortcut menu and deliberately click Merge, you can change the default action for all .reg files. Similarly, you may prefer to have the default action for a batch file (.bat) changed to Edit instead of Open. Double-clicking the file will not run the commands in the file, and if users want to run the file, they can use the Open command on the shortcut menu.

back to the top

Change the Default Action

To change the default action for a file type:
  1. Click Start, click Control Panel, click Appearance and Themes, and then click Folder Options to open the Folder Options dialog box.
  2. Click the File Types tab.
  3. In the File Types list, click the file extension you want to modify.
  4. Click the Advanced button to open the Edit File Type dialog box.
  5. Click the command that you want to make the default command, and then click Set Default.
  6. Click OK, then click Close.
back to the top

Article ID: 320036 - Last Review: 12/07/2015 09:24:45 - Revision: 1.1

Microsoft Windows XP Professional, Microsoft Windows XP Home Edition

  • kbnosurvey kbarchive kbenv kbhowto kbhowtomaster KB320036