小白来了 当前离线
一级士官
czjt1234 当前离线
少校
cd /d d:\a tree >1.txt cd /d d:\b tree >>1.txt复制代码
TOP
cd /d d:\a dir /ad/s/b >1.txt cd /d d:\b dir /ad/s/b >>1.txt复制代码
ShowCode 当前离线
VIP1
qixiaobin0715 当前离线
大校
@echo off set Folder1="C:\A\" set Folder2="D:\B\" dir /s /b /ad %Folder1% %Folder2%>1.txt复制代码
77七 当前在线
中校
@echo off (for %%a in (%*) do ( cmd /q /c "for /r "%%~a" /d %%d in (*) do echo %%~nxd" ))>>"%~dp0list.txt" pause复制代码
terse 当前离线
中将
@echo off set "folder1=e:\test\" set "folder2=c:\test\" for /f "delims=" %%a in ('dir /b /s /ad "%folder1%" "%folder2%"') do echo %%~nxa" pause复制代码