Skip to content

Instantly share code, notes, and snippets.

@tsweeper
Last active August 15, 2019 09:46
Show Gist options
  • Save tsweeper/49900d5e5e80b0b0fb725fbff4f189b4 to your computer and use it in GitHub Desktop.
Save tsweeper/49900d5e5e80b0b0fb725fbff4f189b4 to your computer and use it in GitHub Desktop.
Windows Explorer shell command registry for youtube-dl.exe using clipboard URL
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\youtube-dl]
@="youtube-dl here"
[HKEY_CLASSES_ROOT\Directory\Background\shell\youtube-dl\command]
; requires Powershell 6 with ClipboardText module installed.
; Install-Module -Name ClipboardText
; https://www.powershellgallery.com/packages/ClipboardText
@="pwsh.exe -NoExit -Command {$f=\"F:\\tools\\youtube-dl.exe\";$args=Get-ClipboardText;& $f $args}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment