Solved

How to supress 'Access denied' when copy/replace file in the System folder using Command Prompt

Posted on 2007-11-27
2
1,254 Views
Last Modified: 2008-02-01
How to suppress 'Access denied' when copy/replace file in the System folder using Command Prompt

I use copy c:\a.txt  d:\  /S  /Y  and get 'Access Denied'
0
Comment
Question by:myang999
2 Comments
 
LVL 11

Accepted Solution

by:
theProfessa earned 500 total points
ID: 20362292
In this case you do not want to use the copy command but XCOPY

Goto your command prompt and type in

xcopy c:\a.txt d:\ /c

/C parameter is to suppress and error dialog boxes

type xcopy /? to find out more paramters

Hope this helps!
0
 

Author Comment

by:myang999
ID: 20362330
I am sorry I have to reopen this. There was typo in my path that's why it worked.

I am trying to copy and place one file to 'System32\Drivere\ETC' directory.

The above solution does not work in this case.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question