namerg
asked on
How to create a report of files and folder sizes from a certain path?
Hello,
I would like to have a report with the following information:
FolderPath, FileName, number of Files, FolderSize, FileSize. for example:
I would like to have a report with the following information:
FolderPath, FileName, number of Files, FolderSize, FileSize. for example:
FolderPath FileName No of Files FolderSize FileSize
C:\temp\Adobe 10 10MB or 10GB
C:\temp\Adobe\AcrobatProfesional.exe 250MB
etc, etc, etc
Are you looking for single folder details? or For all the sub folders in a folder?
ASKER
good point, a folder might contain sub-folders also. So, yes, sub-folders need to be included.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Wow...Subsun. Let me bow my head. 90.0%
One thing:
On the report i see this entry and size as 0.75, it should be 769MB
One thing:
On the report i see this entry and size as 0.75, it should be 769MB
Name ParentPath Type Size Count
en_office_professional_plus_2013_x64_dvd_1123674.iso S:\Shared\HPD\Doug\Desktop backup\Downloads File 0.75
Do you want the size in GB or MB?
Change the / 1GB to / 1MB then it will display the results in MB
Change the / 1GB to / 1MB then it will display the results in MB
ASKER
hmm, the thing there might sizes in GB and MB, so something like when checking the file size if it is less that 1GB display MB and if is greater than 1GB display GBs....!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
My Respects, Subsun. You got it.
Thanks.. I'm just happy to help & learn.. :-)