Carlo
asked on
ROBOCOPY files to SYSWOW64 Access Denied
Trying to use ROBOCOPY in a batch program to copy files from C:\folder to C:\Windows\syswow64 and I am gettting an access denied. Using /COPYALL /s as a switch.
Tried running the CMD also with administrator rights and the same thing. Please advise.
Tried running the CMD also with administrator rights and the same thing. Please advise.
Right click on the folder
Click properties
Go to security
Change ths owner of the folder to yourself.
Close the properties of the folder.
Open the properties again
go to security
set yourself as having full control
Now run your robocopy from an elevated command prompt
Click properties
Go to security
Change ths owner of the folder to yourself.
Close the properties of the folder.
Open the properties again
go to security
set yourself as having full control
Now run your robocopy from an elevated command prompt
ASKER
::: Thanks for the Info John but I am not replacing anything in this folder. Just adding some DLL files and such.
::: Ben, I am logged in as an administrator, I have total admin rights to the system.
I still run the CMD with administrator rights but no go.
::: Ben, I am logged in as an administrator, I have total admin rights to the system.
I still run the CMD with administrator rights but no go.
At Carlo,
After taking ownership of the folder (and replacing sub itemd) and setting yourself full control (and replacing sub items)?
After taking ownership of the folder (and replacing sub itemd) and setting yourself full control (and replacing sub items)?
what was the actual robocopy command you used?
ASKER
Ben the command I used was:
ROBOCOPY /COPYALL /s C:\abc C:\windows\syswow64
This did not work
ROBOCOPY /COPYALL /s C:\abc C:\windows\syswow64
This did not work
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ahh here is the remaining issue!
ROBOCOPY /COPYALL /s
RoboCopy MUST follow this format:
ROBOCOPY "C:\abc" "C:\windows\syswow64" *
The Command Requires that Source and Destination are the first two items, and that the file Glob comes 3rd, and all options follow that.
ie Usage :: ROBOCOPY source destination [file [file]...] [options]
The following Robocopy command would be functional:
ROBOCOPY /COPYALL /s
RoboCopy MUST follow this format:
ROBOCOPY "C:\abc" "C:\windows\syswow64" *
The Command Requires that Source and Destination are the first two items, and that the file Glob comes 3rd, and all options follow that.
ie Usage :: ROBOCOPY source destination [file [file]...] [options]
The following Robocopy command would be functional:
ROBOCOPY "C:\abc" "C:\windows\syswow64" * /COPYALL /s
You should not be trying to copy things into this folder lest you make your system unstable later or even not working.