我想设置"var3=%(title)s.%(ext)s"
但是 windows 继续解释
%(title)s.%(ext)s
,
(ext)s
而不是
%(title)s.%(ext)
有没有办法以字面方式“设置”而不用 cmd 解释它?
编辑有人想看整个剧本
cd C:\youtube-dl
youtube-dl -U
echo Remember to press enter only AFTER update is complete
pause
set /p "var1=Enter URL: " %=% pause
set "var2=%date:/=-%"
set /p var3=%(title)s.%(ext)s
youtube-dl "%var1%" -ci -o C:\Users\Admin\Desktop\Music\Download_dl\%var2%\%var3% -f best -x -- no-mtime --add-metadata --write-thumbnail
cd C:\Users\Admin\Desktop\Music\Download_dl\%var2%
del *.mp4