Link to home
Start Free TrialLog in
Avatar of FGoldbach
FGoldbach

asked on

Robocopy, Access is denied Acessing Attributes

I am getting frustrated. I have created a batch file with Robocopy, to copy files from a Win 7 to a Seagate NAS 110 server, and for some folders , I am getting the Changing the Attribute access denied error at the destination folder. When I compare security and permission between folders where it work and where it does not work, I cannot see any difference.  
I ran it first from the CMD command and it works fine copying all directories and files. I used the /M switch, and it also deleted the archive attribute from the source file. I ran it again and it only copied the one file I have modified, so I was happy and created a batch file, I believe with nearly the same switches. The next day when the batch file run from the scheduler I got the above problems. There was one access denied attribute change from a read only source file so I changed the /M switch to /XO. When I run the below command directly from the "CMD command" I get the same error. I cannot figure out what I have done wrong, your support is appreciated.
The script: Robocopy "F:\My Documents" "\\BA-xxxx\xxx-PC\My Documents" /XD dirs *.tmp /XA:H /ZB /MIR /XO /FFT /XX /R:0 /W:0 /Log+:"E:\Data backup\CopyLog.txt" /NP /NDL
Avatar of Leon Fester
Leon Fester
Flag of South Africa image

It just sounds like a permissions issue.
You may have elevated permissions when you run the command directly yourself.

Check the permissions assigned to the account that is used for the scheduled task.
Avatar of FGoldbach
FGoldbach

ASKER

I just ran it again from the command prompt with administrator right, and it still gives the same errors.
Does the script run okay if you remove the section for resetting the attributes?  The Seagate NAS 110 server may have a proprietary OS and/or file system that does not support changing file attributes.
ASKER CERTIFIED SOLUTION
Avatar of qz8dsw
qz8dsw
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial