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
"kkdraper" <(E-Mail Removed)> wrote in message
news:22E12D6C-F2AD-4212-9EFF-(E-Mail Removed)...
> 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
>
> "Daniel MartÃ*n [MVP Windows]" wrote:
>
>> > 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.)
>>
>> --
>> Regards,
>> Daniel MartÃ*n
>> Microsoft MVP Windows - Shell/User
>>
>>
>> "kkdraper" <(E-Mail Removed)> wrote in message
>> news:4C87F1C6-73D6-497E-87B6-(E-Mail Removed)...
>> >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?
>> >
>>
>>
|