Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MkDir - "File/Path Access Error"

Status
Not open for further replies.

demoman

Programmer
Oct 24, 2001
242
US
Howdy

I am obviously creating a directory, but I receive this error WHEN the target root directory has restrictive group permissions. I am an administrator, and have full permissions. I am guessing that authentication needs to be passed (?), but there is no argument for that in the MkDir command.

I looked at the CreateDirectory function (Win32). It does have Security Attributes, but I cannot find and help, or example for this.

Does anyone have any suggestions?

Thanks
 
can you post some of the code that you're using. I want to help, but don't want to take things out of context. thanks
 
below is the code. As you can see it is still in the early stages, mainly do to the fact I cannot execute the MkDir command on a Network Drive which has permissions set.

Public Function Create_New_Directory(strDirPath As String) As Long

If IsNull(strDirPath) Or Len(Trim(strDirPath)) = 0 Then 'no path supplied
Create_New_Directory = 1
Exit Sub
End If

'add test to validate drive
'add test to validate first level directory

MkDir strDirPath

'add test to validate path was created

Create_New_Directory = 0 'function succeeded

End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top