Calculate folder size for multiple folders : <p>I would like to build a script which does:</p>

<ul>
<li>Calculate total folder size for specific paths;</li>
<li>Display folder size per path in MB's (recursive sub-folders included, not displayed);</li>
<li>Calculate total size of all listed folders.</li>
</ul>

<p>This will be used in a back-up/restore script. Prior to making the back-up we would like to know the total size of the back-up, and also in which folders contains large amounts of data.</p>

<p>Output would be something like:</p>

<pre><code>Total size: 1456MB
    C:/folder1 100MB
    C:/folder2 123MB
    C:/folder3/folder1 1233MB
</code></pre>

<p>Perhaps something very simple for some of you. I have searched and tried for a couple of hours but never got what I need.. Any suggestions which code language to use, or specific scripts would help!</p>
