Input: Folder.
Ouput: Danh sách folder & số lượng file tương ứng
folder1 122
folder2 110
folder3 130
folder4 107
folder5 131
folder6 115
folder7 115
folder8 130
folder9 114
folder10 97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
FOR /D %%G in ("*") DO ( | |
PUSHD "%%G" | |
FOR /F "delims=" %%H in ('dir /a-d /b * ^|find /C /V ""') DO echo %%G %%H>>"..\count.txt" | |
POPD | |
) |
No comments:
Post a Comment