I added a file type using the ftype
command. Now I want to add another ftype
for use with the Open With
context menu.
Is this possible? If so, how? If not, is there another way to do it?
Whenever a filetype opens in default in Microsoft Notepad for example, I rightclick and choose Open With...
From there I browse, choose my program once I find it, and then once I do that one time it appears the next tme I right click and choose Open With...
So you do have to manually do find the program the first time per filetype, but after that it should appear automatically under Open With...
Use a text editor and copy the contents below:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Open with Notepad]
[HKEY_CLASSES_ROOT\*\shell\Open with Notepad\command]
@="notepad.exe %1"
Change the contents as necessary and save as a .reg file.
Double click the .reg file and accept any UAC prompts. The new entry will now be in the context menu.
ftype
. Also note that Keltari's .REG file above will add the Open with Notepad command to all file types. If you want to add for only, say .TXT, you need to navigate to HKEY_CLASSES_ROOT\.txt
, find out the ProgID i.e. txtfile, then go to HKEY_CLASSES_ROOT\txtfile\shell
.