Is it possible to remove all attributes to all dir, sub dir, folders, files, live in windows?
using the cmd as follows:
ATTRIB -R -H %systemdrive% /S /D
All examples are welcomed.
Page 1 of 1
ATTRIB.cmd Removing attributes by script
#2
Posted 15 April 2007 - 02:34 AM
Simply put, yes, you can.
There is a caveat though: You won't be able to remove the attributes (R/H/A) of a system file (+S). For such files, you'd need to do a -S first.
ATTRIB -S -R -H -A will work if you want to remove all attributes.
Further caveats-
- It won't work for OS protected files like "System Volume Information"
- It won't work for files that you don't have write access to. (use cacls.exe for such files)
There is a caveat though: You won't be able to remove the attributes (R/H/A) of a system file (+S). For such files, you'd need to do a -S first.
ATTRIB -S -R -H -A will work if you want to remove all attributes.
Further caveats-
- It won't work for OS protected files like "System Volume Information"
- It won't work for files that you don't have write access to. (use cacls.exe for such files)
#3
Posted 15 April 2007 - 02:05 PM
[deXter], on Apr 15 2007, 06:34 PM, said:
Simply put, yes, you can.
There is a caveat though: You won't be able to remove the attributes (R/H/A) of a system file (+S). For such files, you'd need to do a -S first.
ATTRIB -S -R -H -A will work if you want to remove all attributes.
Further caveats-
- It won't work for OS protected files like "System Volume Information"
- It won't work for files that you don't have write access to. (use cacls.exe for such files)
There is a caveat though: You won't be able to remove the attributes (R/H/A) of a system file (+S). For such files, you'd need to do a -S first.
ATTRIB -S -R -H -A will work if you want to remove all attributes.
Further caveats-
- It won't work for OS protected files like "System Volume Information"
- It won't work for files that you don't have write access to. (use cacls.exe for such files)
@ deXter
very helpful
- ← Modifype CMD file Please
- Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
- Network Printers & driver →
Share this topic:
Page 1 of 1



Help

Back to top








