Create Sub Directory Using VB.NET
In this article I describe how to create sub-directory using VB.NET.
The Directory.CreateDirectory is also used to create a sub directory. All you have to do is to specify the path of the directory in which this subdirectory will be created in.
The following code snippet creates a Mahesh subdirectory in C:\Temp directory.
Dim root As String = "C:\Temp"
Dim subdir As String = "C:\Temp\Mahesh"
'If directory does not exist, create it.
If Not Directory.Exists(root) Then
' Create sub directory
If Not Directory.Exists(subdir) Then