I'm using the following code to make a directory if not already created:
strUserPath = %UserProfile%Code:If fso.FileExists(strUserPath & "\AppData\") Then Else MkDir (strUserPath & "\AppData\") End If
The problem I'm running into is that when the directory exists (%UserProfile%\AppData\) the code is still proceeding to attempt to MkDir and generates an error (Run-time error 75; Path\File Access error) . What am I missing here?




Reply With Quote