@echo off chcp 65001 >nul set OUT=D:\GROM_ktined\scripts\_size.txt if exist %OUT% del %OUT% for %%d in (data\data\sources data\data data\dataset data\dataset_extra data\db_exports data\local_uploads data\picture data\raw_text) do ( echo [%%d] >> %OUT% dir /s /-c /a-d "D:\GROM_ktined\%%d" 2>nul | findstr /c:"File(s)" >> %OUT% ) echo [ALL] >> %OUT% dir /s /-c /a-d "D:\GROM_ktined" 2>nul | findstr /c:"File(s)" >> %OUT% echo DONE >> %OUT%