Skip to content

Instantly share code, notes, and snippets.

@cecilemuller
Created November 19, 2017 15:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cecilemuller/e58ed8c6ade7a7af8b2ab0987bd06636 to your computer and use it in GitHub Desktop.
Save cecilemuller/e58ed8c6ade7a7af8b2ab0987bd06636 to your computer and use it in GitHub Desktop.
Windows Registry: filetype icon, name & context menu actions (for Windows 10)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.myext]
[HKEY_CLASSES_ROOT\.myext\OpenWithProgids]
"MYAPP.myext"=""
[HKEY_CLASSES_ROOT\MYAPP.myext]
@="MyApp Example File"
[HKEY_CLASSES_ROOT\MYAPP.myext\DefaultIcon]
@="C:\\MyApp\\myext.ico"
[HKEY_CLASSES_ROOT\MYAPP.myext\shell]
[HKEY_CLASSES_ROOT\MYAPP.myext\shell\open]
@="Open with MyApp"
"Icon"="C:\\MyApp\\open.ico"
[HKEY_CLASSES_ROOT\MYAPP.myext\shell\open\command]
@="\"C:\\MyApp\\cli.cmd\" \"open\" \"%1\""
[HKEY_CLASSES_ROOT\MYAPP.myext\shell\myaction]
@="Secondary action with MyApp"
"Icon"="C:\\MyApp\\myaction.ico"
[HKEY_CLASSES_ROOT\MYAPP.myext\shell\myaction\command]
@="\"C:\\MyApp\\cli.cmd\" \"myaction\" \"%1\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment