Link to home
Start Free TrialLog in
Avatar of namerg
namergFlag for United States of America

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:
FolderPath                   FileName                                     No of Files      FolderSize       FileSize
C:\temp\Adobe                                                                10           10MB or 10GB              
                            C:\temp\Adobe\AcrobatProfesional.exe                                               250MB
etc, etc, etc

Open in new window

Avatar of SubSun
SubSun
Flag of India image

Are you looking for single folder details? or For all the sub folders in a folder?
Avatar of namerg

ASKER

good point, a folder might contain sub-folders also. So, yes, sub-folders need to be included.
SOLUTION
Avatar of SubSun
SubSun
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of namerg

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
Name	                                                    ParentPath	                                Type    Size	Count
en_office_professional_plus_2013_x64_dvd_1123674.iso	S:\Shared\HPD\Doug\Desktop backup\Downloads	File	0.75	

Open in new window

Do you want the size in GB or MB?

Change the / 1GB to / 1MB then it will display the results in MB
Avatar of namerg

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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of namerg

ASKER

My Respects, Subsun. You got it.
Thanks.. I'm just happy to help & learn.. :-)