Link to home
Start Free TrialLog in
Avatar of Carlo
CarloFlag for United States of America

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.
Avatar of John
John
Flag of Canada image

That is a highly protected folder and is meant to keep system files Windows needs. It is meant to be able to repair your system (as one main feature) using DISM.  

You should not be trying to copy things into this folder lest you make your system unstable later or even not working.
Avatar of Ben Personick (Previously QCubed)
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
Avatar of Carlo

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.
At Carlo,

  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?
Avatar of Carlo

ASKER

Ben the command I used was:

ROBOCOPY /COPYALL /s C:\abc C:\windows\syswow64

This did not work
ASKER CERTIFIED SOLUTION
Avatar of Carlo
Carlo
Flag of United States of America 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
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 "C:\abc" "C:\windows\syswow64" * /COPYALL /s

Open in new window