How to remove the specific attribute from XmlDocument?

How can i remove read-only attribute on a windows xp file?

  • i want to remove the read-only attribute on one of my windows xp files. when i go to the file's properties and unclick Read-only and click apply it says "an error occurred applying attributes to this file. access is denied." what should i do? thanks

  • Answer:

    Here's a couple of things I found online that you might try. 1). Copy sub-folders and files inside the folder to an another directory then remove the directory content and finally the directory. Or... 2). Log in to an administrator account and remove all permissions for the problematic file/folder. Then give full access only to the user you need to use that file or folder with. You'll need to restart the system for permissions to take hold. If you just need to delete the file or folder, another solution is to mount the drive on another OS and delete it from there. That is, of course, only an option if you have another OS. When only folders have the read only attribute set and files don't you can also recreate the directory structure elsewhere then copy files from the original structure to the newly created structure.

Tim at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.