Helping people with computers... one answer at a time.

Copying a file requires that you have access to both the source file and the intended destination. There are several reasons you might not.

I have two hard drives on my computer. I have a file on one hard drive and I cannot move (cut & paste) it to my other hard drive. I get "Access is denied." I have looked at the properties for that file and see that the "Read-only" attribute is set. I have 'unset' that attribute but still can't cut and paste the file on the other drive. Can you explain this situation? The file is a TurboTax file I created. Is there a solution?

There are several possible reasons that access to a file might be denied. Some are easy to fix, but others might require a little more investigation on your part.

Read-Only Files

This is perhaps the most common case people run into, because it's not always obvious that the read-only attribute might get copied with the file. Your scenario shouldn't be affected by this, but here's a way that it could have been:

"... you may be denied access to a file if it's in use by another application."
  • Your original file is marked read-only.

  • Your first attempt to copy the file actually succeeds or fails after the destination file has been created.

  • Unbeknownst to you, the destination file has the read-only flag set because the original file did.

  • Unsetting the read-only doesn't fix anything, because in order to copy the file now you must be able to delete or overwrite the earlier copy in the destination, and the copy is marked read-only.

The solution here is to delete the previously copied file, or at least reset its read-only status as well as that of the original file.

File In Use

Perhaps almost as common, you may be denied access to a file if it's in use by another application. This typically refers to the destination; meaning that if the destination file already exists and you're attempting to replace or overwrite it you may not be able to if another application has that destination file open.

However this can also apply to the source file. Depending on the application, a program can have a file open in such a way that you cannot even read it in order to make a copy of it until the application has been closed. I'd actually expect programs like TurboTax to operate this way.

Regardless of whether it's the source or destination, the solution here is simply to close any application that might be accessing the file. If you're not sure who might be using a file in use, then you might want to check out this article: How can I find out who is using a "file in use"?

File Permissions

This most commonly happens:

  • If your hard disk's filesystem is NTFS

  • and you're attempting to copy from one user's documents to another

  • and you're not logged in as the administrator

There are other scenarios where this can happen as well, but that's the most common.

Most people forget that Windows is a multi-user operating system. That implies that not only does it keep separate settings and so on for each user that can log in to the machine, it's also charged with protecting those users from each other. One of those protections is file access permissions. The most obvious is that if you're logged in as user "User A", you probably cannot access files in "c:\Documents and Settings\User B". Attempts to access files therein will get you "access denied".

NTFS actually supports quite complex per-user permissions on any file or folder. Right click on a file in Windows Explorer, click on Properties and then click on the Security tab for an idea of what might be involved.

Other Thoughts

Naturally there are other things that could be getting in your way. Filesystem or hard disk corruption might be one, which can most likely at least be identified by running CHKDSK in a Windows Command Prompt.

Keep in mind that if all you're seeing is "Access is Denied", it's not telling which side of your copy you're being denied access to. It might be that you can't access the file you're attempting to copy, or it might be that you can't access the location you're attempting to copy to. Keep that in mind as you look at the various ideas above.

You also mentioned that you're attempting to "move" a file. A move from drive to drive is nothing more than a copy followed by a delete. It's possible that it's the delete at the end that's failing.

Article C3205 - November 7, 2007 « »

Share this article with your friends:

Share this article on Facebook Tweet this article Email a link to this article
Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

November 10, 2007 9:35 AM

I'm using XP Home. All my HDs are formatted NTFS. There's no 'Security' tab on any file's 'Properties' sheet.

Terry Hollett
November 12, 2007 4:45 AM

Since I've been using XP I've never had so many 'locked' files in my life. I save a lot of web pages such as yours on my hard drive.

I double click on them to open them in Opera. That file will be locked and I can't delete or move it. On the other hand, if I open Opera first and drag and drop the file into it, it wont be locked.

I also have occasions where I had to delete files and sometimes sub-folders within a folder before I could delete the main folder.

I came across a simple utility that might help, called 'Unlocker', from:

January 24, 2008 11:50 PM

how to remove the Read-only or the System attributes of folders from the folders... tried but again it has become read only file.

January 25, 2008 1:36 AM

how to remove the Read-only or the System attributes of folders from the folders... tried but again it has become read only file.

December 9, 2008 5:29 PM

If you start up in safe mode, you will get another user logon called administrator. Log in there and when you go to the security part of the file with a right click, the settings are accessable to change.

George Rex
April 20, 2009 11:50 PM

I am attempting to copy a folder from a CD to a harddrive. Being a CD I am unable to change the files attributes. Keep getting the Access Denied message. Is there a way around this?

You should be able to change the attributes on the files once they've been copied to your hard disk.
- Leo

June 28, 2009 3:31 AM

Why I can't use a file?It's a video that I downloaded but I can't use it to windows movie maker.It said that this file can't be imported?
What should I do...?

October 6, 2009 12:34 PM

I am trying to copy a file from a Windows 2003 Server (behind a firewall) to another Windows 2003 Server (other side of the firewall) using pass-through authentication (local user accounts on both servers). If the local account on the target server is in the local administrators group the copy works fine, but without administrator priveleges I get "Access is Denied". Any idea what type of privelege is required to copy files? Obviously I can't get away with having the locl account in the local administrators group.

ariel polintang
October 31, 2009 7:55 PM

i accidentally moved one of my folders to one of the folders inside drive d, as in i accidentally darg and drop one of my folder in side another folder when i try to open it it says access denied. i tried system restore and thought that i can set it back to its original settings. the folder went to its original posotion but still access denied,,,,, please help

November 6, 2009 3:31 AM

Please send the solution for read only file as i changed the attributes but still same problem neither can copy paste nor can open that file.

January 24, 2010 7:20 AM

My computer got a virus and could get on so I decide to take photos from that hard drive to put them on a laptop. copmuter was Xp laptop is windows 7. Got the adapter that I need and now when I try to copy pics I get "Access is Denied". All I want is the pictures and some documents on the computer. Please HELP really need my pictures! Thank You

Gwen Cooksey
February 16, 2010 7:11 AM

I have lots of music in Itunes and want to download some of it onto my Ipod. problem is that the Itunes files are read only. Found out that I could change the read only but I still can't download the music. message comes up "cannot create or replace access denied". All I want is music on my I pod - help please!!!

kartik patel
October 24, 2010 12:25 AM

Cannot copy : Access is denied
Make sure the disk is full or write protected and that the file is not currently in use..

Please provide me help for this error.
i get this error when i try to copy a file.
and even when i try to delete the file..

waiting for u reply...

Please read the article you just commented on. It answers this question.

December 4, 2010 4:09 AM

Ahh the reasons to why are many, but the solution to the problem is.. did any one solve it? ha!
Here it is..
Click folder of data you want to move and paste in desired location... ~ #ERROR Access denied blah blah -
K Click folder again this time "add to archive" and set it to "store" or fastest or least or no compression.
Winrar in my case eliminated all the files I could not move from the archive leaving me only with what i could move - Schweet! -
But some were word docs... so I opened them up and saved them with word to my new location.

Hope this help someone...

pervez khan
October 6, 2011 7:44 AM

Cannot copy : Access is denied
Make sure the disk is full or write protected and that the file is not currently in use..
plz, someone help me to copy my data to other computer

Please read the article you just commented on. It answers your question

L Vilmos
April 9, 2013 9:15 AM

Win 7 really made a fool of me! I prepared several photos for my University lecture on a pen-drive. When I wanted to project them to my students almost all of them were denied to show up! None of the reasons Leo had mentioned applies!

Comments on this entry are closed.

If you have a question, start by using the search box up at the top of the page - there's a very good chance that your question has already been answered on Ask Leo!.

If you don't find your answer, head out to to ask your question.