Changing the Program Associated with a File Type

by Barry Dysert
(last updated September 15, 2014)

When Betty double-clicks on a text file in Windows, the file is automatically opened in Notepad. She would rather have the text file be opened with a different text editor that she finds preferable to Notepad. So, she wonders how she can change the program associated with text files.

For many common types of files, Windows knows which programs it should use to open them. For instance, as Betty discovered Windows knows that when you double-click on a file that has an extension of ".txt", it should open the file using Notepad.

You can easily make a change in which program Windows associates with text files or with other file types. There are a couple of ways you can accomplish this task. The first is to use the Control Panel. (To display the Control Panel, click the Start button and select Control Panel.) In the Control Panel's search box, type "extensions." Then, under the Folder Options category, click on the link that says "Change the File Type Associated with a File Extension." Windows displays the Set Associations window. (See Figure 1.)

Figure 1. The Set Associations window.

Note that the window lists all the file types on your system and what program is associated with each one. If you scroll down to the ".txt" entry you'll see that its default program is Notepad. To change it to your other text editor, click the ".txt" entry and click the Change Program button. Windows displays the Open With dialog box. (See Figure 2.)

Figure 2. The Open With dialog box.

You can now click one of the programs in the Recommended Programs category, or click Browse and select your own program that should be used to open ".txt" files.

Another way to associate a program with a certain type of file is to right-click the file in Windows Explorer and hover your mouse over the "Open with" menu item. On the fly-out menu, click "Choose Default Program." When the new window appears, you can select one of the programs in the Recommended Programs category, or click Browse and select your own program that should be used to open this type of file. Click the checkbox labeled "Always use the selected program to open this kind of file" to have your association remembered for all files of this type.

 This tip (12030) applies to Windows 7.

Author Bio

Barry Dysert

Barry has been a computer professional for over 30 years, working in different positions such as technical team leader, project manager, and software developer.  He is currently a senior software engineer with an emphasis on developing custom applications under Microsoft Windows. ...

MORE FROM BARRY

Changing Your Internet Home Page

Regardless of the browser you use, there's a way to change its settings so that you can specify where it goes when you click ...

Discover More

Changing How Tasks Appear on the Taskbar

The Windows Taskbar is much more robust than it was in previous versions of the operating system. One of its many features is ...

Discover More

Ripping Songs from Audio CDs

Ripping songs from audio CDs is fairly simple, but the actual process varies from application to application.

Discover More
More WindowsTips

Determining How Much Space the Files in a Folder Require

Want to know how much space is required by all the files in a folder? There are a couple of very easy ways to get this ...

Discover More

Understanding Storage Spaces

Need to add some addition drive space to your system? Why not consider adding what Microsoft calls a "storage space?" This ...

Discover More

Creating a Bootable USB Flash Drive

If your hard disk becomes problematic to the point where you can't even boot from it, you'll be glad you have a bootable USB ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is three more than 8?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.