How to Remove file attributes

OK,

I have windwos 7, every time I try and run the attrib command with a switch I get this response

From within the PowerShell ISE

PS C:\Users\Public\Music\iTunes Media> attrib -r "C:\Users\Public\Music\iTunes Media\Music" \S \D
Parameter format not correct -

Why is this

Benjamin
|
Answer
Answer

Hi Benjamin,

 

The syntax you have used seems to be incorrect. You may use the below mentioned syntax and check.

 

Display or change file attributes. Find Filenames.

 

Syntax

      ATTRIB [ + attribute | - attribute ] [pathname] [/S [/D]]

 

Key

     +    : Turn an attribute ON

     -    : Clear an attribute OFF

 

 Pathname: Drive and/or filename e.g. C:\*.txt

    /S    : Search the pathname including all subfolders.

    /D    : Process folders as well

 

Attributes:

        R  Read-only (1)

        H  Hidden (2)

        A  Archive (32)

        S  System (4)

Extended attributes:

 E  Encrypted       

C  Compressed (128:read-only)       

I  Not content-indexed       

L  Symbolic link/Junction (64:read-only)       

N  Normal (0: cannot be used for file selection)       

O  Offline      

P  Sparse file       

T  Temporary

 

Hope this helps.

3 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Answer
Answer
Looks like the slashes before the S and D should be forward slashes but they are backward.
If my reply helped, please mark it as helpful
If it fixed your problem, please mark it as the answer

3 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated May 20, 2021 Views 3,754 Applies to: