Are you saying that Windows Explorer can't change the attributes you need changed? In Win Explorer, select the item you want to change by right-clicking on it, click on properties and check or uncheck the Read Only box. Unfortunately in Win explorer I don't think you can change attributes on groups of files or whole directory trees at once. There are more advanced alternatives to Win Explorer that can do that.
In any case, if you do have a command-line attrib program, the syntax to remove the Read-Only flag is : attrib -r , add a space *.* after the r to do all the files in the current directory. With a command session open, type attrib /? to get the full list of syntax options. To process all the files in the Windows folder and below, the syntax would be: attrib -r c:\windows\*.* /S if you want to change the attributes on folders as well, add a space and /D after the /S .
. And you can copy files with their attributed intact - just look at the syntax of the XCOPY command from within a Command session: xcopy /? . There is an option to Keep file attributes and if you don't use the /K option, all files will be at default setting on the destination, IOW all attributes off.
.bh. 
__________________
"Our freedom depends on five boxes: soap, ballot, jury, witness; and, when all else fails, Ammo. " ?author?
Last edited by zepper : December 14th, 2006 at 11:14 AM.
|