@echo off
set "dest-dir=D:\Users\USER\Videos\Youtube\"
set youtube-dl="C:\app\Youtube-DL\yt-dlp.exe"
IF EXIST %dest-dir% (
echo directory exists
) ELSE (
echo Not EXIST
mkdir %dest-dir%
echo directory created
)
cd %dest-dir%
set /P url="URL: "
%youtube-dl% %url% -o %dest-dir%%%(title)s.%%(ext)s --update
pause
explorer %dest-dir%