Get Size of a Folder in Bytes (VB.NET/ASP.NET)
Category:C#, VB.NET, ASP.NET
Version Compatibility: Visual Basic.NET, ASP.NET
This function works in VB.NET or ASP.NET and can be called recursively to include the files in all subdirectories, or non-recursively to include the parent.
Instructions: Copy the declarations and code below and paste directly into your VB project.