Summary: There are lots of reasons you might not be able to open a file. In this article we look at programs that refuse to open files marked "read-only", and what to do.
I saved a copy of important excel files back in 2004. When I tried to open what I was looking for, I was unsuccessful. A window popped up and said "xyz.xls file cannot be accessed. The file may be read-only (which it shows in properties) or you may be trying to access a read-only location, or the server the doc is stored on may not be responding". I know it's possible to take ownership of a hard drive in order to change read-only status, however I forgot how, plus I don't know if its possible to do it with a CD. Can you help?
•
Besides accessing files that may have been written to CD as a backup, this is a common trap people fall into when moving files from machine to machine.
There are many programs that will refuse to open files that are marked read-only. The problem is that files can appear as "read-only" for several different reasons.
I'll look at those reasons, as well as the most common scenario where people run into this problem. And of course I'll outline what you can do.
•
Files can appear read-only for one several reasons, the most common being:
The file is marked read-only. Individual files can be marked as being read-only - typically as a means to protect them from being overwritten.
The file is on a media that is read-only. CD-R's are write-once media. Once a CD-R has been burned, it cannot be written to - it can only be read. Hence the files on it are marked as "read-only".
The file is in use. Less frequently, another program might have the file open in such a way that anyone can read it, but the file is locked for writing. In some cases this can be reported as the file being "read-only".
Let's look at what we can do about each of those.
If a file is marked as read-only on the disk, it's fairly easy to reset that attribute.
Fire up Windows Explorer, and locate the file in question. Here I've located "c:\documents and settings\leon\my documents\safeontheinternet.pdf":

Now, right click on the file you want to change, and click on Properties. You should see a dialog much like this one:

Note the Attribute setting "Read Only" - uncheck it if it's checked, and press OK. If no error appears, the setting has been removed.
If the file is on a read-only media like a CD-R or a read-only network share, you cannot change the read-only status. In this situation, or if you just want to avoid changing the read-only status of the file as we just did, the next best solution is to make a copy of the file onto your local hard disk.
So, using Windows Explorer, the command prompt, or whatever means you use to copy files, copy the file or files from the read-only media to a folder on your hard disk.
Important! When you copy a file from a read-only media such as a CD-R, the read-only status is copied with it. That means you still can't write to the file until you take the steps above to reset the read-only attribute on the file on your hard disk.
This causes people no end of confusion.
Finally, if the file is in use, you again, can either make a copy of it, or determine who's using the file and close that program.
While the question asks specifically about Excel, in fact the most common scenario where this whole read-only problem comes up is when email folders are copied to CD-R for backup or for moving to a different machine.
Mail programs, particularly Outlook and Outlook Express, expect - and require - that they be able to write to the files containing email. If these files are marked read-only then the program will either fail to open them, or worse, tell you that they don't exist.
And remember - copying the files to your local hard disk isn't enough. I see people frequently stymied because they've copied their files locally thinking that was enough, and they still can't open their mail.
After copying files from CD-R you still must reset the read-only attribute if you want to be able to write to them.
And naturally that holds true for the Excel file we started with. Copy the file to your hard disk, reset the read-only attribute, and you should be good to go.
Article C2781 - September 6, 2006
Hi, I've been having a problem with this CD of mine. I read your article and tried to do what you said. For example
I went into the file which is a .rar file. I tried to uncheck the read only status and when I applied it came up with 'access denied' I tried to copy the contents into the cd but it comes up with 'incorrect parameter'I tried to fix that problem, but there were no solutions.
This CD is from a friend of mine and the majority of the file types are set in .rar. It doesn't let me open it or copy it. Please help.
09-Oct-2009
Posted by: Andrew at October 8, 2009 10:07 PM
I have the same problem as AMIT. I'm remotely accessing a file. It won't let me open it from its destination, but if I copy it onto the desktop of my home computer, I can then open the file and work with it. The remote disk drive shows up in "My Computer," but when I try to access something through the drive through a program, it doesn't appear. Any thoughts / ideas? Thanks, Mel.
Posted by: Melanie at December 5, 2009 4:08 PMTried all the suggestions but can't open my file. I had it restored from my up to date backup after my computer crashed. Now whatever I do it denies access. I even restored to another location but same result. What to do now as I really need the contents of that file
Posted by: Raymond at December 14, 2009 6:25 AMI'm trying to open a pdf file from a CD and I keep getting the error message "could not open [file] because it is either not a supported file type or because the file has been damaged". I've been trying to find a solution with no luck. I tried the read only thing you described here and nothing.
Posted by: Tasha at December 17, 2009 10:49 AMWe are trying to move into the 21st century in our office (!) and currently save files on the old 3" square disks. I need to be able to save files onto CDs, however, I need to be able to open and modify those files/documents from time to time. I realize I can't do that with a CD-R (recordable) disk, but before I invest in rewritable disks, will this solve my problem?
Posted by: Charlene at March 2, 2010 8:02 AM