本帖最后由 qixiaobin0715 于 2021-12-14 14:32 编辑
- @echo off
- (for /f "delims=" %%i in ('dir /b /ad') do (
- pushd "%%i"
- for /f "delims=" %%a in ('dir /b /a-d *.jpg') do (
- if not exist "%~dp0%%a" (
- copy "%%i" "%~dp0">nul
- ) else (
- echo,%%~fa
- )
- )
- popd
- ))>"D:\abc\1.txt"
- pause
复制代码
|