Skip to content

Powershell function that recursively returns directory sizes

License

Notifications You must be signed in to change notification settings

coderpros/DirSize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DirSize

Contributors Forks Stargazers Issues MIT License LinkedIn Twitter GitHub

Powershell function that recursively returns directory sizes.

Usage

DirSize.ps1 -Path "C:\path_to_analyze" [-Detailed] [-Mb]

-Detailed recursively returns all sub directories.

-Mb returns filesizes in Mb instead of Gb

DirSize.Console

.Net 5 C# Console application that recursively returns directory sizes.

Usage

DirSize [drive:][path] [/v] [/mb]

/v Verbose. Recursive breakdown of each directory.

/mb Returns results in megabytes.

/? Returns the man file.

Change Log

  • 2021/10/20:
    • Added console application.
  • 2021/10/17:
    • Project creation / initial checkin.
    • Added optional -Mb parameter that will force the script to return filesizes in Mb instead of Gb.

Notes