

of China Hungary India Indonesia Ireland Israel Italy Jamaica Japan Kuwait Latvia Lithuania Luxembourg Macao S.A.R.

of China Malaysia Mexico Mongolia Montserrat Morocco Nepal Netherlands New Zealand Nicaragua Nigeria Norway Oman Panama Paraguay Peru Philippines Poland Portugal Puerto Rico Qatar Romania Russian Federation Saint Kitts and Nevis Saint Lucia Saint Vincent and the Grenadines Saudi Arabia Serbia Singapore Sint Maarten (Dutch part) Slovakia Slovenia South Africa South Korea Spain Sri Lanka Suriname Sweden Switzerland Taiwan Region Thailand Trinidad and Tobago Turkey Turks and Caicos Islands Ukraine United Arab Emirates United Kingdom United States of America Uruguay US Downloads Venezuela Vietnam Virgin Islands, British if ( $folderName -eq ' all ' ) #Return the object array with the objects selected in the order specified. There are some third party programs like Folder Size and FreeCommander but they both seem sketchy to me. Or you can zip all the folders you are looking through and sort those but thatll be a compressed version.

Param ( ] $BasePath = ' C:\ ', ] $FolderName = ' all ', ] $OmitFolders, $AddTotal ) #Get a list of all the directories in the base path we're looking for. How do I sort by folder size I know you can right-click on the folder and get the folder size.
