Opening a File with a Program Other than the Default

Written by Barry Dysert (last updated September 28, 2020)

One of the interesting things about Windows is that a file's "type" determines what program is used to open that file. For example, .txt files are, by default, opened with Notepad. If you have Microsoft Office installed, .docx files are opened with Microsoft Word, etc. You may come across an occasion where you want to open a file with a program other than the default for that type.

Let's say that you have text files with a ".txt" extension that opens with Notepad by default, but for whatever reason, there's a particular .txt file that you want to open with WordPad for now. Windows has an "Open With" function built into both Windows Explorer (Windows 7) and File Explorer (later versions of Windows), so it's easy to open your .txt file with WordPad by launching Windows Explorer or File Explorer, right-clicking the file, and choosing "Open With" from the Context menu. (See Figure 1.)

Figure 1. Using "Open With" to select a non-default program.

Windows presents several programs while you're in the Open With menu, but if none of the presented programs are the one you want, you can click "Choose Default Program" for more choices. When you click "Choose Default Program," Windows displays the Open With dialog box. (See Figure 2.)

Figure 2. Getting more choices to select a non-default program.

You can scroll through this window to see if the program you want to use is presented here. If it isn't, click the Browse button to navigate to the program you want to use.

Notice in the Open With dialog box that there is a checkbox entitled "Always Use the Selected Program to Open this Kind of File." Be sure to uncheck this checkbox before clicking OK, otherwise all of your .txt files will end up using the program you choose.

 This tip (12681) 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

Freeing Up Disk Space by Deleting Old OS Files

I'm always looking for ways to free up disk space. Even with a 1 TB drive I want to be a "good disk citizen." If you're ...

Discover More

Understanding Robocopy

Robocopy is a robust file copy utility built into Windows. If you have a lot of file management to do that can't easily ...

Discover More

Using Powercfg to List Your Existing Power Schemes

Windows allows you to define different power schemes that control how your computer uses power. This tip shows you how to ...

Discover More
More WindowsTips

Encrypting a File Folder

Want to make the data stored on your system more secure? Think about enabling the built-in encryption capabilities of ...

Discover More

Moving Files or Folders

A common operation within Windows is to move files and folders from one location to another. Here are the two major ways ...

Discover More

Stopping Windows from Creating Thumbs.db Files

Many times, the automatically created Thumbs.db file is more trouble than it's worth. If you want to stop Windows from ...

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 2 + 2?

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


Newest Tips