if FileType("C:\ProgramData\BlitzTest")<>2
CreateDir("C:\ProgramData\BlitzTest")
DebugLog "CREATED THE FOLDER"
Else
DebugLog "THE FOLDER ALREADY EXISTED"
End If
CreateDir("C:\ProgramData\BlitzTest")
DebugLog "CREATED THE FOLDER"
Else
DebugLog "THE FOLDER ALREADY EXISTED"
End If
This doesn't account for a *file* by that name already existing,nor verifies that a folder was indeed created. (out of disk space? insufficient permissions?)