attribute cleaner?

  • Thread starter Thread starter ToddAndMargo
  • Start date Start date
T

ToddAndMargo

Hi All,

Had a hard drive crash. Replacing the hard drive
and reinstalling XP-pro, mounted the old hard drive as
a second hard drive and managed to copy over some
critical data files.

Problem: some of the files seem to have their read
only attribute set. (The contents of the files seem
perfect.) I have used the "attrib -r *.* /s" and the
"properties, uncheck read only" dialog without joy.
(One weird thing, the dialog box seems to have a green
square inside the check box for read only.) The new
settings do not stick.

Is there some mass attribute cleaner I can run to
clean up this mess?

Many thanks,
-T
 
Hi,

You are looking at that at the folder level rather than the file level. The
"read only" attribute is ignored by Windows at the folder level, it only
applies to files. It isn't so much that it can't be changed, it's that it
really isn't available (grayed-out as opposed to being unable to uncheck
it).

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Windows help - www.rickrogers.org
 
Go to the folder where these files are and then from cmd prompt try
this:

attrib , *.*

Or from anywhere:

attrib , c:\folder\*.*

the first one works for lonf file names.

This should remove all attributes from the file including systems ad
hidden.

hth
 
ANONYMOUS said:
Go to the folder where these files are and then from cmd prompt try
this:

attrib , *.*

Or from anywhere:

attrib , c:\folder\*.*

the first one works for lonf file names.

This should remove all attributes from the file including systems ad
hidden.

C:\Temp\eraseme>attrib , *.*
Parameter format not correct -

Are sure the syntax included a comma (",")? (The above comand was done
from
w2k-pro, not XP. Maybe commas are a new feature in XP?)

-T
 
Feedback to the group.

The comma (",") in attrib was a typo of some sort.

What finally fixed the problem was to run the following attrib
command on the directory that I copyed the files from the
corrupted hard drive to.

attrib -r -s -h C:\MyRecoveredFiles /d /s

It was the "/d" switch that did the trick. (Changed directory
folders too). Apparently, the files kept inheriting attributes
from their parent folder

Thanks to everyone who pointed me int the right direction on
this.

-T
 
Back
Top