我想讓這個腳本跳轉到腳本的另一部分,如果沒有來自用戶的輸入。批處理腳本移動到腳本的另一部分,如果沒有來自用戶的輸入
倒在if%input%==區域。
我想要做的是跳到腳本檢查.mp4文件的部分,如果它們在那裏,就移動它們。我應該爲該部分設置一個變量或循環嗎?感謝您的任何答覆
@echo off
echo Checking for youtube-dl updates.
pause
youtube-dl -U
rem Enter the url or urls that you want to download from
set /p input="Enter the url(s) you want to download:"
rem Uses the youtube-dl continue (-c) option to download multiple files if not in a playlist
youtube-dl -c "%input%"
rem pause
if %input%=="" GOTO:EOF
cls
echo Download complete, please wait while files are transfered to appropiate folder
pause
for %%o in (.mp4) do move "*%%o" "E:\Documents\scripts\videos\"
if not exist do echo .mp4 files are no longer in this directory
pause