Page 1 of 1 1
Topic Options
#163072 - 2006-06-07 04:02 PM ERROR 5 (0x00000005) Creating Destination Directory
SASKINN Offline
Fresh Scripter

Registered: 2006-06-06
Posts: 10
I get the next error:

2006/06/07 15:53:34 ERROR 5 (0x00000005) Creating Destination Directory \\computername\Old_Dir\1_dir\9-9999-9\
Access is denied.

can someone help please?

I kan make folders when drive is mapped. i use but robocopy copyall but it doesnt work why?

Top
#163073 - 2006-06-07 04:23 PM Re: ERROR 5 (0x00000005) Creating Destination Directory
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
This should work if you have access to the computers and it's c drive over the network.

Code:

If Exist ("\\computer\c$\somefolder")
Copy "source stuff to copy" "\\computer\c$\somefolder\"
Else
MD "\\computer\c$\somefolder"
Copy "source stuff to copy" "\\computer\c$\somefolder\"
EndIf

_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#163074 - 2006-06-07 05:17 PM Re: ERROR 5 (0x00000005) Creating Destination Directory
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Error #5 is access denied, as it says in the message. This means that the user running the task does not have permission to create the folder or the folder contents.

When you use COPYALL the permissions of the folders are copied. If a folder that you are copying has permissions which mean that your user is allowed to read the folder contents but is not allowed to write to the folder you will get an accedd denied error when you try to copy the folder contents.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 472 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.055 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org