changing read-only folder & fle attributes on my system

G

Guest

I couldn't get remove the green square in the read-only box under Attributes
under Properties. I got the following from the Microsoft site.

1. Start Registry Editor (Regedit.exe).
2. Locate the following registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\Explorer
3. On the Edit menu, point to New, click DWORD Value, and then type the
following registry value name:
UseSystemForSystemFolders
4. Right-click the new value, and then click Modify.
5. Type 1, and then click OK.
6. Quit Registry Editor.
7. After you make this change to the registry, you must change the Read-Only
attribute for all affected folders by using the attrib command at a command
prompt (Command.com or Cmd.exe). Type attrib /? at the command prompt to view
the syntax for the attrib command. For example, to change the Read-Only
attribute to System for the C:\Test folder, use the following command:
attrib -r +s c:\test

My question is - "is there an actual file called "TEST" on the C drive or am
I supposed to type in something else? Do I have to do it for each folder I
want to change? How would I get it to change "My Pictures" for example?
 
G

Guest

My question is - "is there an actual file called "TEST" on the C drive or
am
I supposed to type in something else?

"Test" is a placeholder for your real folder. If your folder is "My
Pictures", for example, and is located at \Documents and
Settings\Username\My Documents, then use this syntax:

attrib -r +s "%UserProfile%\My Documents\My Pictures"

(Note the quotes around the path; it contains blank spaces.)
 
G

Guest

That's what I thought so I typed attrib -r +s c:\My Documents\My Pictures and
I always get "Parameter format not correct". Or even if I type attrib -r +s
My Documents\My Pictures I get that same error message.
What do you mean by user profile???????
The prompt already has us at c:\Documents and Settings\HP_Owner........and
I'm trying to tell it My Document\My Pictures
 
G

Guest

You must enclose the path name in double quotation marks:

attrib -r +s "My Documents\My Pictures"

--
Regards,
Daniel Martín
Microsoft MVP Windows - Shell/User
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top