Main Forum > General Computer Support

Unable to create the log file path

<< < (2/2)

Shane:

--- Quote ---Maybe you need to add the back-slash like this?

MakeSureDirectoryPathExists(sLogPath &"\")
--- End quote ---

Nope, because the \ is already there, I have the program add it to the path when you apply it, look at your screen shot and you will see it is already there :wink:


--- Quote ---If it were MY code (or open source) I'd add (just to test) the GetLastError function, hoping to get more info on the error. I would also debug using a breakpoint at that function and use F8 to step into it.
--- End quote ---

I will have to add the getlasterror function to it, I already have the api in the program for the file copy api so will be easy to apply it there. I am curious to what error it will give on why it cant access that folder.

What happens if you changed the log folder to the C:\ drive instead? Does it still give the error?

You also didnt answer my question on D:\, is it just another hard drive or is it a mapped drive or thumb drive or something like that?

Shane

Navigation

[0] Message Index

[*] Previous page

Go to full version