This tutorial contains you the necessary code to check if a directory exists and to create one if it returns false using VB.NET.
Code:
Imports System.IO
If Directory.Exists("c:\mydir") Then
MessageBox.Show("Directory exists!")
Else
Directory.CreateDirectory("c:\mydir")
MessageBox.Show("Directory created!")
End If
No comments:
Post a Comment