228630386 当前离线
三级士官
aloha20200628 当前离线
上尉
@echo off (for /d %%D in (*) do for /f "delims=" %%d in (' dir /b/s/ad "%%D" ') do echo,%%~nxd)>"子目录名列表.txt" exit/b复制代码
TOP
dreamer 当前离线
一级士官
for /d /r %%i IN (*) do echo %%~ni >>list.txt复制代码
ppll2030 当前离线
四级士官
qixiaobin0715 当前离线
大校
@echo off (for /f "delims=" %%i in ('dir /b /ad') do ( pushd "%%i" for /f "delims=" %%j in ('dir /b /ad') do ( echo,%%j ) popd ))>123.txt复制代码
@echo off (for /d %%D in (*) do for /d %%d in ("%%D\*") do echo,%%~nxd)>"子目录名列表.txt" pause&exit/b复制代码
@echo off (for /d %%D in (*) do for /f "delims=" %%d in ('dir /b /ad "%%D"') do echo,%%~nxd)>"子目录列表.txt" exit /b复制代码
77七 当前在线
中校
@echo off cd /d "%~dp0" (for /f "delims=" %%d in ('dir /b /ad') do ( for /f "delims=" %%e in ('dir /b /ad "%%d\*"') do ( echo %%e ) ))>"list.txt" pause复制代码