title: How do I Get Folder Size in C#?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1118568/how-do-i-get-a-directory-size-files-in-the-directory-in-c">How do I get a directory size (files in the directory) in C#?</a>  </p>
  </blockquote>
  
  
  
  <p>In vbscript, it's incredibly simple to get the folder size in GB or MB:</p>
  
  <pre><code>Set oFSO = CreateObject("Scripting.FileSystemObject")
  Dim fSize = CInt((oFSO.GetFolder(path).Size / 1024) / 1024)
  WScript.Echo fSize
  </code></pre>
  
  <p>In C#, with all my searches, all I can come up with are long, convoluted, recursive searches for every file size in all subfolders, then add them all up at the end.</p>
  
  <p>Is there no other way?</p>