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.
Carlo VasquezAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
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.
Ben Personick (Previously QCubed)Lead SaaS Infrastructure EngineerCommented:
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
Carlo VasquezAuthor Commented:
::: 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.
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

Ben Personick (Previously QCubed)Lead SaaS Infrastructure EngineerCommented:
At Carlo,

  After taking ownership of the folder (and replacing sub itemd) and setting yourself full control (and replacing sub items)?
Ben Personick (Previously QCubed)Lead SaaS Infrastructure EngineerCommented:
what was the actual robocopy command you used?
Carlo VasquezAuthor Commented:
Ben the command I used was:

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

This did not work
Carlo VasquezAuthor Commented:
I fixed the issue with a straight copy command.

This is the fix I found:
COPY /Y C:\abc\*.* C:\windows\syswow64*

Sadly ROBOCOPY did not work for me. kept giving me access denied.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ben Personick (Previously QCubed)Lead SaaS Infrastructure EngineerCommented:
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

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.