changing file attributes

bobt4747

Junior Member
Jun 24, 2005
2
0
0
Hello
Can anybody help ?

Recently I have had a lot of problems with spyware and viruses, In a bid to stop all this I installed windows on my second hard drive ( I have 2 identical SATA120 HD's) with the idea I could copy all my files from the My documents folder in documents and settings over later and then format the original C: drive.

I think the mistake I made then was to delete the original windows installation and now I cant get into my documents folder to copy them across.

Although I have been able to do this with the other 2 users files I am unable to open my folder ( I get a message saying access is denied or the folder is read only)

I have heard that I can change the file attributes in DOS but have never done anything like that before so is there anybody out there who can help ?

Thank You in advance

bobt4747

 

pcgeek11

Lifer
Jun 12, 2005
22,227
4,932
136
Login under an admin account then assume ownership of the folder and files. Once this is done you can move / copy them wherever you want...

How to take ownership of a folder
Note You must be logged on to the computer with an account that has administrative credentials. If you are running Microsoft Windows XP Home Edition, you must start the computer in safe mode, and then log on with an account that has Administrative rights to have access to the Security tab.

If you are using Windows XP Professional, you must disable Simple File Sharing. By default, Windows XP Professional uses Simple File sharing when it is not joined to a domain.

For additional information about how to do this, click the following article number to view the article in the Microsoft Knowledge Base:
307874 How to disable simplified sharing and set permissions on a shared folder in Windows XP
To take ownership of a folder, follow these steps: 1. Right-click the folder that you want to take ownership of, and then click Properties.
2. Click the Security tab, and then click OK on the Security message (if one appears).
3. Click Advanced, and then click the Owner tab.
4. In the Name list, click your user name, or click Administrator if you are logged in as Administrator, or click the Administrators group. If you want to take ownership of the contents of that folder, select the Replace owner on subcontainers and objects check box.
5. Click OK, and then click Yes when you receive the following message:
You do not have permission to read the contents of directory folder name. Do you want to replace the directory permissions with permissions granting you Full Control?

All permissions will be replaced if you press Yes.
Note folder name is the name of the folder that you want to take ownership of.
6. Click OK, and then reapply the permissions and security settings that you want for the folder and its contents.
Back to the top
How to take ownership of a file
Note You must be logged on to the computer with an account that has administrative credentials.

To take ownership of a file, follow these steps: 1. Right-click the file that you want to take ownership of, and then click Properties.
2. Click the Security tab, and then click OK on the Security message (if one appears).
3. Click Advanced, and then click the Owner tab.
4. In the Name list, click Administrator, or click the Administrators group, and then click OK.

The administrator or the Administrators group now owns the file. To change the permissions on the files and folders under this folder, go to step 5.
5. Click Add.
6. In the Enter the object names to select (examples) list, type the user or group account that you want to give access to the file. For example, type Administrator.
7. Click OK.
8. In the Group or user names list, click the account that you want, and then select the check boxes of the permissions that you want to assign that user.
9. When you are finished assigning permissions, click OK.


pcgeek11