Changing the Program Associated with a File Type

Written by Barry Dysert (last updated October 23, 2017)

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. 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. What you see at this point depends on the version of Windows you are using. If you are using an older version of Windows, you'll see the Open With dialog box. (See Figure 2.)

Figure 2. The Open With dialog box.

The release of Windows 10 saw Microsoft adopt the "app" nomenclature and the introduction of the App Store. If you are using Windows 10, you'll see a dialog box that reflects this change. (See Figure 3.)

Figure 3. Setting up a file association in Windows 10.

Regardless of the version of Windows you are using, you can use the controls in the dialog box to select which program (or app) you want used when you 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” or "Chose Another App" (depending on your version of Windows). 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, 8, and 10.

Author Bio

Barry Dysert

Barry has been a computer professional for over 35 years, working in different positions such as technical team leader, project manager, and software developer. He is currently a software engineer with an emphasis on developing custom applications under Microsoft Windows. When not working with Windows or writing Tips, Barry is an amateur writer. His first non-fiction book is titled "A Chronological Commentary of Revelation." ...

MORE FROM BARRY

Settings Compared to Control Panel

Windows 10 has moved a lot of the settings previously found in Control Panel to the Settings app. How is the settings app ...

Discover More

Capturing a Screen Shot

There are a lot of reasons why you may want to capture screen shots. This tip shows how easy it is to do it.

Discover More

Using Powercfg to Change a Setting in the Current Power Scheme

The Powercfg utility allows you to control how power is used on your system. This tip shows you how to use this ...

Discover More
More WindowsTips

Rebuilding the Search Index

There may be times when you want to reset the search index and rebuild it from scratch. This tip tells you how.

Discover More

Adding File Types to the Search Index

You can fine-tune Indexed Searches by adding file types to the search index. This tip tells you how.

Discover More

Using Offline Files

If you need access to files on a network but aren't always on the network, you may find that the offline files feature of ...

Discover More
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}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. 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 six minus 2?

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


Newest Tips