Site hosted by Angelfire.com: Build your free website today!
Chapter 38: Registering Programs and File Types

PreviousChapterContentsGlossaryNext

Associating File Types with Programs

In Windows, every file has a file type, determined by the file extension (usually three letters) after the dot. For example, My Proposal.doc has type DOC, so one usually calls it a DOC file. Every file type can be associated with a program or group of programs, so when you open a file of that type in an Explorer window (by clicking or double-clicking the file), the associated program runs automatically to process the file. Most programs associate themselves with the appropriate file types when you install the program, but in two circumstances, you may want to set your own associations:

The Windows file association facility is complex and flexible. A file type can have several programs associated with it to do different actions, such as viewing and editing a file. The usual way to process a file is to open an application, but file associations can also use DDE (Dynamic Data Exchange), a Windows facility that enables one running program to send a message to another program.

To see or change the details of a file association or to create a new association, open any disk drive or folder in Windows Explorer and choose Tools | Folder Options. In the Folder Options window, click the File Types tab. (The first time you do so, Windows takes a minute to assemble a list of the registered file types.) Highlight a file type in the Registered File Types list to see information about that file type in the lower part of the dialog box. Click the Change button to display the Open With dialog box and to choose a different program to run when you open that type of file. Windows lists the programs that it recommends for handling this type of file, along with other programs that it knows can open them. You can also browse to other programs that are not listed. Or, click the Advanced button to see the Edit File Type dialog box, which contains a description of the type, the icon, the usual extension for the type, and a list of actions.

tip When you try to open a file from the Explorer window but the filename extension isn't associated with any program, Windows opens a dialog box explaining that it can't open the file. It offers two choices: downloading a program from the Internet, or using the Open With window to choose an application that you have on your computer. If you do not see the application you want to use, click the Browse button at the bottom of the dialog box and find the file that contains the program. You can also create a file association for this file type by entering a short description of the file type and selecting the appropriate application from the Programs list. Unless you uncheck the Always Use The Selected Program To Open This Kind Of File box, Windows saves the association.

PreviousChapterContentsGlossaryNext