Skip to content

Instantly share code, notes, and snippets.

@DarthJahus
Last active December 9, 2018 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DarthJahus/70bd457827cdeed7acf81eb7bf8f5183 to your computer and use it in GitHub Desktop.
Save DarthJahus/70bd457827cdeed7acf81eb7bf8f5183 to your computer and use it in GitHub Desktop.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Applications\cvlc.bat]
"FriendlyAppName"="VLC (Custom)"
[HKEY_CLASSES_ROOT\Applications\cvlc.bat\DefaultIcon]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\",0"
[HKEY_CLASSES_ROOT\Applications\cvlc.bat\shell]
[HKEY_CLASSES_ROOT\Applications\cvlc.bat\shell\Open]
@="Play with VLC (Custom)"
[HKEY_CLASSES_ROOT\Applications\cvlc.bat\shell\Open\command]
@="\"C:\\cvlc.bat\" \"%1\""
[HKEY_CLASSES_ROOT\Applications\cvlc.bat\SupportedTypes]
".mp4"=""
".mkv"=""
[HKEY_CLASSES_ROOT\cvlc.video]
@="VLC media file (Custom)"
[HKEY_CLASSES_ROOT\cvlc.video\DefaultIcon]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\",0"
[HKEY_CLASSES_ROOT\cvlc.video\shell]
@="Open"
[HKEY_CLASSES_ROOT\cvlc.video\shell\Open]
@="VLC (Custom)"
"MultiSelectModel"="Player"
[HKEY_CLASSES_ROOT\cvlc.video\shell\Open\command]
@="\"C:\\cvlc.bat\" \"%1\""
[HKEY_CLASSES_ROOT\.mp4\OpenWithProgids]
"cvlc.video"=hex(0):
@DarthJahus
Copy link
Author

DarthJahus commented Dec 9, 2018

In this example, cvlc.bat in located in C:\

Note that \ has to be escaped (i.e. \\ = \)

For example, if you move cvlc.bat to C:\Scripts\, you'll have to replace lines 15 and 35 with @="\"C:\\Scripts\\cvlc.bat\" \"%1\""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment