title: Batch file to display directory size
body: <p>I want to modify this script. I can't get it to accept wildcard charcters:</p>
  <pre><code>@echo off
  setLocal EnableDelayedExpansion
  set /a value=0
  set /a sum=0
  FOR /R %1 %%I IN (*) DO (
  set /a value=%%~zI/1024
  set /a sum=!sum!+!value!
  )
  @echo Size is: !sum! k
  </code></pre>
  <p>It is in a batch file called dirsize and is called like so:</p>
  <pre><code>dirsize c:\folder
  </code></pre>
  <p>I want it to check the folder sizes for me. This one here is an example, the cache in firefox:</p>
  <pre><code>dirsize C:\users\%username%\AppData\Local\Mozilla\Firefox\*.default\Cache
  </code></pre>
  <p>It returns the value 0.</p>
  <p>But if I go</p>
  <pre><code>dirsize C:\users\%username%\AppData\Local\Mozilla\Firefox\sr1znnb4.default\Cache
  </code></pre>
  <p>It works and I get the value 55322 returned.</p>