Path/file access error

I have this code in an agent:

strPath = “\serverX\c$\Folder”

If (Dir$(strPath, ATTR_DIRECTORY) = “”) Then

Mkdir strPath

End If

And every time I run it, it works. But when a partner try to run it from his computer he always gets this message: “Path/file access error”. We have been searching and trying to fix this problem, but he still has this problem.

Do anyone knows how to fix this?

thanks

Subject: PROBLEM SOLVED!!!

We have finally solved the problem. We just change the server name for the ip number in the strPath variable and it works!!!.

strPath = “\serverX\c$\Folder” ----> strPath = “\192.168.xxx.xxx\c$\Folder”

Subject: Response

Check if your partner has an access to the directory of the server you specified. Probably your partner has no access in that directory

Subject: access

He has access to the directory. That’s why we’re so confused.

Thanks.