Ask Leo! by Leo A. Notenboom

Why can't I open this file?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Windows

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":

My Documents with safeontheinternet.pdf selected

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

safeontheinternet.pdf properties

Note the Attribute setting "Read Only" - uncheck it if it's checked, and press OK. If no error appears, the setting has been removed.

"When you copy a file from a read-only media such as a CD-R, the read-only status is copied with it."

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.

"After copying files from CD-R you still must reset the read-only attribute if you want to be able to write to them.

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

Was this article helpful? «Yes» «No»

Recent Comments
55 Comments

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.

CD-Rs are read-only once they've been created, you can't modify ANYTHING *on* the CD. You need to copy the files to your hard disk, possibly reset the read-only bit, and then you should be able to access or decompress the files.
Leo
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 PM

Tried 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 AM

I'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 AM

We 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

Post a comment on "Why can't I open this file?":



(Name will be included when your comment is published.)



(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

  • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

  • Comment only on this article. Use the Google search box at the top of the page if you have a question about something else.

  • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

  • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

  • Don't ask me to recover lost passwords or hacked accounts. I can't, and those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...




Question? Ask Leo!