本帖最后由 Five66 于 2024-12-5 00:09 编辑
不知行否 ,深度52以内
(忘了文件夹了,已编辑)- @echo off
-
- set "lujing=D:\ftp"
- set N=2
-
- set "_= qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM"
- setlocal enabledelayedexpansion
- pushd "%lujing%"
- set /a ____=%N%-1&set "_d= /d"
- for /l %%- in (1 1 %____%) do (
- set _a=!_:~%%-,2!&set _b=!_a:~1,1!
- set _a=!_a:~0,1!
- if %%- == %____% (
- set __=!__!dir /b "%%!_a!\*"
- ) else (
- set __=!__!for!_d! %%!_b! in ^(^"%%!_a!\*^"^) do ^(
- set "___=!___!)"
- ))
- if %N% == 1 set "_cmd=dir /b"
- if %N% geq 2 set "_cmd=for /d %%q in (*) do (!__!%___%)"
- %_cmd%
- popd&echo,&endlocal&pause&exit/b
复制代码
|