A practical guide for Windows 10 and Windows 11: add an app to the Open with list, remove unwanted programs from it, hide the Open with context-menu item, and restore it if it is missing.
The Open with menu is the Windows File Explorer option that lets you open a file with a different program without permanently changing the file association. For example, you can right-click a .jpg file and open it with Photos, Paint, Photoshop, GIMP, or another image editor.
There are two different things people usually mean when they say they want to add or remove Open with:
This changes which programs appear after you click Open with for a specific file type such as .txt, .jpg, .pdf, or .mp4.
This hides or restores the actual Open with item in the right-click context menu for files.
Registry editThis is useful when the context menu entry disappeared, does nothing, or the app list is corrupted.
TroubleshootingSimple changes through Settings are safe. Registry changes are also straightforward, but you should back up the relevant key first. This lets you undo the change if the menu does not behave as expected.
SystemPropertiesProtection, and press Enter.Open Command Prompt as administrator and run:
Command Promptreg export "HKCR\*\shellex\ContextMenuHandlers\Open With" "%USERPROFILE%\Desktop\open-with-backup.reg"
UserChoice registry values manually unless you know exactly what you are doing. Modern Windows protects default app associations, and manual edits can be ignored or can break the association for that file type.
The safest way to add a program to the Open with list is to open a file with that program once. Windows usually remembers the app for that file extension and shows it again later.
.txt, .png, .mp4, or .html..exe file and open it.If your goal is not just to show a program in the menu but to make it the default app, use Default apps in Windows Settings. This is the correct method for Windows 10 and Windows 11.
.jpg, .pdf, or .txt.Windows does not provide a clean graphical interface for removing a single unwanted program from the Open with list. If the app is still installed, Windows may continue suggesting it. If the app was removed or the list contains duplicates, you can clean the per-extension history in the Registry.
regedit, and press Enter..ext with the real extension, for example .jpg or .txt:Registry PathHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ext\OpenWithList
oldviewer.exe.MRUList value contains the deleted letter, update it or delete MRUList so Windows can rebuild the order..txt. To clean the list for JPG images, use .jpg. Each extension has its own Open with history.
Open Task Manager, find Windows Explorer, right-click it, and select Restart. You can also run this command:
Command Prompttaskkill /f /im explorer.exe
start explorer.exe
This method is useful for portable programs that do not install normally and therefore do not appear in the Open with dialog. The example below registers a portable editor so Windows can offer it for selected file types.
Replace MyEditor.exe and the path with your real executable name and folder:
Example .reg FileWindows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Applications\MyEditor.exe]
"FriendlyAppName"="My Editor"
[HKEY_CLASSES_ROOT\Applications\MyEditor.exe\shell\open\command]
@="\"C:\\Tools\\MyEditor\\MyEditor.exe\" \"%1\""
[HKEY_CLASSES_ROOT\Applications\MyEditor.exe\SupportedTypes]
".txt"=""
".log"=""
".md"=""
| Registry Item | Purpose |
|---|---|
Applications\MyEditor.exe |
Registers the executable as an application Windows can show in app selection dialogs. |
FriendlyAppName |
Shows a readable name instead of only the executable filename. |
shell\open\command |
Defines the command used to open the selected file. The %1 parameter means the clicked file. |
SupportedTypes |
Limits the app suggestions to specific extensions, such as .txt, .log, and .md. |
Use the least invasive method that matches your goal. For normal app selection, use Settings or the File Explorer dialog. Use the Registry only when Windows does not provide a graphical option.
| Goal | Best Method | Admin Required | Risk Level |
|---|---|---|---|
| Add an app to Open with | Right-click file โ Open with โ Choose another app | No | Low |
| Change the default app | Settings โ Apps โ Default apps | No | Low |
| Remove one stale app from Open with | Clean FileExts\.ext\OpenWithList |
Usually no | Medium |
| Hide the Open with menu item | Delete the context menu handler key | Yes | Medium |
| Restore missing Open with | Recreate the context menu handler key | Yes | Medium |
| Add a portable app properly | Register it under Applications |
Depends on location | Medium |
OpenWithList key under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts. Be careful not to delete the whole extension key unless you want Windows to rebuild all user choices for that file type.
FileExts. Remove the stale executable name from the relevant OpenWithList key, then restart File Explorer.
OpenWithProgids is used to associate file types with application ProgIDs. Deleting it can remove useful app suggestions for a file type. If you only want to remove a stale app from the visible list, start with OpenWithList instead.
For everyday use, the best way to add an app to Open with is still the normal File Explorer dialog. To change the permanent default app, use Settings โ Apps โ Default apps. Registry editing is only necessary when you need to remove stale entries, hide the Open with command completely, or restore it after it has disappeared.
Before deleting Registry keys, export a backup. With a backup and the restore snippet above, you can safely customize the Open with menu without reinstalling Windows or resetting all file associations.