{"id":977674,"date":"2018-02-22T15:29:15","date_gmt":"2018-02-22T20:29:15","guid":{"rendered":"https:\/\/mkncreations.com\/site\/?p=977674"},"modified":"2018-02-22T15:29:15","modified_gmt":"2018-02-22T20:29:15","slug":"how-to-list-folder-sizes-in-windows","status":"publish","type":"post","link":"https:\/\/mkncreations.com\/site\/2018\/02\/how-to-list-folder-sizes-in-windows\/","title":{"rendered":"How to list folder sizes in Windows"},"content":{"rendered":"<p>Here are few methods:<\/p>\n<p>1. CMD command:<br \/>\nOpen CMD. Go to the directory in question (cd C:\\Directory) and type the below:<\/p>\n<blockquote><p>\ndir \/c \/s > c:\\dirlist.txt\n<\/p><\/blockquote>\n<p>The example above will dump all f the data in a text file called dirlist.txt in c. If you would like that file to be generated somewhere else just change the path (ie D:\\MyFolder\\dirlist.txt).<\/p>\n<p>2. Powershell command:<br \/>\nOpen CMD. Go to the directory in question (cd C:\\Directory) and type the below:<\/p>\n<blockquote><p>\npowershell -command &#8220;$fso = new-object -com Scripting.FileSystemObject; gci -Directory | select @{l=&#8217;Size&#8217;; e={$fso.GetFolder($_.FullName).Size}},FullName | sort Size -Descending | ft @{l=&#8217;Size [MB]&#8217;; e={&#8216;{0:N2}    &#8216; -f ($_.Size \/ 1MB)}},FullName&#8221;\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Here are few methods: 1. CMD command: Open CMD. Go to the directory in question (cd C:\\Directory) and type the below: dir \/c \/s >&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,10],"tags":[187,188,189,191,190,68,160,70,158,64,69,162],"class_list":["post-977674","post","type-post","status-publish","format-standard","hentry","category-how_to","category-windows","tag-cmd","tag-commandprompt","tag-filesize","tag-folders","tag-list","tag-win","tag-win10","tag-win7","tag-win8","tag-windows-2","tag-windows7","tag-windows8"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mkncreations.com\/site\/wp-json\/wp\/v2\/posts\/977674"}],"collection":[{"href":"https:\/\/mkncreations.com\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mkncreations.com\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mkncreations.com\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mkncreations.com\/site\/wp-json\/wp\/v2\/comments?post=977674"}],"version-history":[{"count":1,"href":"https:\/\/mkncreations.com\/site\/wp-json\/wp\/v2\/posts\/977674\/revisions"}],"predecessor-version":[{"id":977675,"href":"https:\/\/mkncreations.com\/site\/wp-json\/wp\/v2\/posts\/977674\/revisions\/977675"}],"wp:attachment":[{"href":"https:\/\/mkncreations.com\/site\/wp-json\/wp\/v2\/media?parent=977674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mkncreations.com\/site\/wp-json\/wp\/v2\/categories?post=977674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mkncreations.com\/site\/wp-json\/wp\/v2\/tags?post=977674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}