Question / Problem
is it possible to use tressize professional in a batch file to get the size of a folder?
Answer / Solution
This command produces a text file with one line containing the size and allocated space of D:\Temp in Bytes:
Treesize /SAVE D_Temp_Size.txt /NOHEADERS /EXPAND 0 /SIZEUNIT 0 D:\Temp