Search code examples
windowscommand-promptyoutube-dl

Create new "execute" function/program in Windows (instead of command prompt)


I am using a small program called Youtube-DL to download videos but everytime I have to open the command prompt, get to the right folder and then execute, say, youtube-dl https://www.youtube.com/watch?v=uFk0mgljtns.

What do I need to set up so that I can do the same thing directly from the "execute" tool (the one you access with the shortcut Windows+R)? Ideally all I would need to do would be Windows+R, type yt-dl https://www.youtube.com/watch?v=uFk0mgljtns.


Solution

  • Add the youtube-dl executable to your %path%: Use setx /M PATH "%PATH%;C:\folder_with_youtubedl" with an admin cmd.