HOW TO: Change the Default Action for a File Type in Windows XP
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 ActionTo change the default action for a file type:
- Click Start, click Control Panel, click Appearance and Themes, and then click Folder Options to open the Folder Options dialog box.
- Click the File Types tab.
- In the File Types list, click the file extension you want to modify.
- Click the Advanced button to open the Edit File Type dialog box.
- Click the command that you want to make the default command, and then click Set Default.
- Click OK, then click Close.
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