Check If Path Exists

This code checks to see if a path exists; if it doesn't exist then the path is created.


        If System.IO.Directory.Exists(Your Path Goes Here) Then
            Code that you want to run if path does exist
        Else
            System.IO.Directory.CreateDirectory(Your Path Goes Here)
        End If

No comments:

Post a Comment