发布网友 发布时间:2024-10-23 19:30
共1个回答
热心网友 时间:3小时前
@echo off
setlocal EnableDelayedExpansion
for /f "delims=" %%a in ('dir/ad/b') do (
set str=%%~a
call :strlen len
if !len! geq 8 move "!str!" "D:\等大8文件夹存放\"
)
pause
goto :eof
:strlen
setlocal EnableDelayedExpansion&set n=0
:strlen_loop
if "!str:~%n%,1!" neq "" set /a n+=1&goto strlen_loop
endlocal&set "%~1=%n%"&goto :eof