...并移动文件夹名大于等于8个字节的文件夹!!高手快来吧!
发布网友
发布时间:2024-10-23 19:30
我来回答
共1个回答
热心网友
时间:2024-11-05 02:38
@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