Create and Delete Directories and Subdirectories in VB.NET

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic.NET, ASP.NET

More information:
Sample Usage:

CreateDirectory("C:\MyDir")
CreateSubDirectory("C:\MyDir", "Test")
DeleteDirectory("C:\MyDir")

Originally developed for beta version, verified to work in .NET Beta 1, 07/20/01.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: