I need to know how i can check if the folder exist, and if it does not exist, create it
For Example:
If File.Exists(File Path) Then
Else
'Create a new folder following the path(Path here)
End If
And Thanks for your help.
I need to know how i can check if the folder exist, and if it does not exist, create it
For Example:
If File.Exists(File Path) Then
Else
'Create a new folder following the path(Path here)
End If
And Thanks for your help.
You might want to consider using this class in order to determine if the folder exists: .Net Directory Class, as well as .Net File Class in order to find the functionality you need. Both of them offers an "Exists" function and a "Create" function.
If you have the case where multiple folders in the path don't exist (which you might want to consider checking for), you would need to include a loop to iterative create every folder in the path until you've reached your destination.