I have the folloing code to creat a dir folder to store a log file, however when I compile it, it does not creat the directory folders. How can i get it to do that.
I have tried each of the following, the only way it works is if my executable is already in the C:\TCT folder.
MkDir CurDir & "C:\TCT\Log"
MkDir App.Path & "C:\TCT\log"
Dim iFileNumber As Integer
Dim strOutputFilename As String
'MkDir CurDir & "C:\TCT\Log"
'MkDir App.Path & "C:\TCT\log"
strOutputFilename = "C:\TCT\log\SystemLog.txt"
iFileNumber = FreeFile()
Open strOutputFilename For Output As #iFileNumber
Print #iFileNumber, " User Machine Information "
Print #iFileNumber, ""