T
TTD
Hello,
I need to create a directory in code, but when de directory already exists,
I get err.number 75.
Since the creation already is in the part where a former error is sent, I
can't catch this error.
In VB there is this code
path = "C:\temp\"
If Directory.Exists(path) = False Then
' Create the directory.
Directory.CreateDirectory(path)
End If
Is there a way to determine if C:\temp already exists before I create one?
Thanks for your time.
I need to create a directory in code, but when de directory already exists,
I get err.number 75.
Since the creation already is in the part where a former error is sent, I
can't catch this error.
In VB there is this code
path = "C:\temp\"
If Directory.Exists(path) = False Then
' Create the directory.
Directory.CreateDirectory(path)
End If
Is there a way to determine if C:\temp already exists before I create one?
Thanks for your time.