Get Size of a Folder in Bytes (VB.NET/ASP.NET)

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic.NET, ASP.NET

More information:
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.

Declarations:

Code: