Last active
August 15, 2019 09:46
-
-
Save tsweeper/49900d5e5e80b0b0fb725fbff4f189b4 to your computer and use it in GitHub Desktop.
Windows Explorer shell command registry for youtube-dl.exe using clipboard URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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