本帖最后由 zaqmlp 于 2022-4-29 20:50 编辑
- @echo off&(if "%~1" equ "" goto :end)
- set "newfolder1=专辑图片与介绍"
- set "newfolder2=合辑单曲"
- if not exist "%~dp1" (echo;Path Error&goto :end) else (cd /d "%~dp1")
- for /f "delims=" %%a in ("%~dp1.") do (if /i "%%~nxa" equ "%newfolder1%" (goto :end))
- set n=&for /d %%a in (*) do (if /i "%%~nxa" neq "%newfolder1%" (set /a n+=1))
- if defined n (
- for %%a in (.wav .ape .flac .dts .dff .mp3) do (
- if exist *%%a (
- md "%newfolder2%" 2>nul
- move /y *%%a "%newfolder2%\" 2>nul
- )
- )
- )
- for %%a in (.jpg .jpeg .bmp .png .txt .pdf .doc) do (
- if exist *%%a (
- md "%newfolder1%" 2>nul
- move /y *%%a "%newfolder1%\" 2>nul
- )
- )
- :end
- pause
- exit
复制代码
|