How to create a directory if it does not exist in VB.NET

1 Answer

0 votes
Imports System.IO

Public Class Program
	Public Shared Sub Main()
        If Not Directory.Exists("project1") Then
            Directory.CreateDirectory("project1")
        End If
    End Sub
End Class




' run:
'
'

 



answered Jul 26, 2023 by avibootz
...