Windows – youtube-dl ‘youtube-dl’ is not recognized as an internal or external command, operable program or batch file

cmd.execommand lineenvironment-variableswindowsyoutube

I have already added the path to environment path variable.

Screenshot of path environment variable

But when I tried to execute it through cmd . I am getting the error

'youtube-dl' is not recognized as an internal or external command,
operable program or batch file.

Best Answer

You do not add specific programs to your path, you add the folder containing your programs.

You need to remove the youtube-dl.exe from the end of highlighted line.