Changing the Default Program for a File

Written by Barry Dysert (last updated September 7, 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 change what program is used for a particular file type.

Let's say that you have text files with a ".log" extension, and you want to have them open with WordPad. Right-click on a .log file and select "Properties" from the resulting Context menu. Windows displays the Properties dialog box for the file. (See Figure 1.)

Figure 1. The Properties dialog box for a .log file.

To designate WordPad as the program that will open .log files, click the Change button. Windows asks "How do you want to open .log files from now on?" Click on the More Apps link. Windows displays a list of apps you can choose from. (See Figure 2.)

Figure 2. Choosing the program that will open .log files.

Scroll down to the bottom of the window to find WordPad listed. (If the program you want to use is not listed, click the "Look for another app on this PC" link to find it.) Now click the "WordPad" item and OK. From now on (unless it's changed), WordPad will be the program used to open all your .log files.

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

Viewing Event Logs

Event logs are automatically maintained by the operating system. By periodically viewing them, you'll have a better idea ...

Discover More

Using the DiskPart Utility

The DiskPart utility is a low-level command-line program that lets you manage disks, virtual disks, partitions, and ...

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
More WindowsTips

Using Robocopy to Copy Entire Directories

It's simple to use Robocopy to copy entire directories. Dealing with directories is what it does best! This tip shows you ...

Discover More

Working with Compressed Files and Folders via NTFS Compression

Windows 10 provides two ways to work with compressed files and folders. One way is to use NTFS compression, which is ...

Discover More

Removing Locations from the Search Index

You can fine-tune Indexed Searches by removing locations from the search index. This tip tells you how.

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 two more than 7?

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


Newest Tips