Home > Articles > Home & Office Computing > Microsoft Windows Desktop

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Creating a New File Type

Windows XP comes with a long list of registered file types, but it can’t account for every extension you’ll face in your computing career. For rare extensions, it’s best just to use the Open With dialog box. However, if you have an unregistered extension that you encounter frequently, you should register that extension by creating a new file type for it. The next two sections provide a couple of methods for doing this.

Using Open With to Create a Basic File Type

Our old friend the Open With dialog box provides a quick-and-dirty method for creating a simple file type for an unregistered extension:

  1. In Windows Explorer, select the file you want to work with.

  2. Select File, Open. (For unregistered file types, Windows XP doesn’t display the Open With command.) Windows XP displays a dialog box telling you that it cannot open the file, as shown in Figure 3.9.

  3. Figure 3.9

    Figure 3.9 Windows XP displays this dialog box when you attempt to open an unregistered file type.

  4. Activate the Select the Program from a List option and then click OK. The Open With dialog box appears.

  5. In the Programs list, select the application you want to use to open the file or click Browse to choose the program from a dialog box.

  6. Use the Type a Description That You Want to Use for This Kind of File text box to enter a description for the new file type.

  7. Make sure that the Always Use the Selected Program to Open This Kind of File check box is activated.

  8. Click OK.

This method creates a new file type with the following properties:

  • In the File Types tab, the new file type appears in the Registered File Types list under the name you entered into the Type a Description type box.

  • The number of actions Windows XP creates for the file type depends on the application you selected. If you can use the application to both display and edit the file, Windows XP creates Open and Edit actions; if you can use the application only to display the file, Windows XP creates just the Open action.

  • The icon associated with the file is the same as the one used by the associated application.

  • In the Registry, the new HKEY_CLASSES_ROOT file type name is ext_auto_file, where ext is the file’s extension.

Using the File Types Tab to Create a More Advanced File Type

If you want more control over your new file type, use the File Types tab instead of the Open With dialog box. This method enables you to select a different icon, set up multiple actions, and more. Here are the steps to follow:

  1. Open the Folder Options dialog box and display the File Types tab.

  2. Click New. Windows XP displays the Create New Extension dialog box shown in Figure 3.10.

  3. Figure 3.10 Use the Create New Extension dialog box to define your new file type.

  4. Type the File Extension for the new file type.

  5. Click OK to return to the File Types tab.

  6. Select the new extension in the Registered File Types list.

  7. Click Advanced to display the Edit File Type dialog box.

  8. Change the file type description and icon, if desired. Follow the steps I outlined in the "Creating a New File Type Action" section to create an Open action for the new file type, as well as any other actions you require (such as Edit or Print).

  9. Click OK.

  10. Click Close.

  • + Share This
  • 🔖 Save To Your Account