@echo off call :inputbox "Video ID" "Download Youtube video as MP3" youtube-dl.exe -x --audio-format mp3 https://www.youtube.com/watch?v=%input% exit /b :InputBox set input= set heading=%~2 set message=%~1 echo wscript.echo inputbox(WScript.Arguments(0),WScript.Arguments(1)) >"%temp%\input.vbs" for /f "tokens=* delims=" %%a in ('cscript //nologo "%temp%\input.vbs" "%message%" "%heading%"') do set input=%%a exit /b