?
Solved

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

Posted on 2007-11-27
2
Medium Priority
?
1,281 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
theProfessa earned 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
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…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

752 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