- @echo off
- cd /d "%~dp0"
- (for /d %%d in (*) do (
- set /p=""%%d" "<nul
- for /f "delims=" %%i in ('dir /b /s /a-d "%%d\*.mp4" "%%d\*.jpg" "%%d\*.png" ^|find /c /v ""') do (
- set /p=%%i <nul
- )
- for /f "delims=" %%i in ('dir /b /s /a-d "%%d\*.mp4" "%%d\*.jpg" "%%d\*.png"') do (
- rem 文件名
- set /p=""%%~nxi" "<nul
- rem 带路径文件名
- rem set /p=""%%i" "<nul
- )
- echo=
- ))>1.txt
- pause
复制代码
|