Link to home
Start Free TrialLog in
Avatar of mdoland
mdoland

asked on

Recursiv set attrib flag bat-file

I need to make a solution that sets the attrib-flag for all files in a certain directory recursively (and all its subdirectories).

Avatar of AmigoJack
AmigoJack

you have to:

- click start-> run
- enter "cmd"
- enter "attrib /?"
- view what it prints
- change the directory to where you want to start with "cd c:\windows\thisone\" for example
- use the attrib-command. an example to recursively set the "readonly" attribute to every file would be: "attrib +H . /S"

if you want to set or release always the same attribute(s) then you could add such a static command to the context-menu (left mousebutton click) of any folder. when you would select that, always the same attributes would be set/released for all files within that folder and recursively all files in every sub-folder
Avatar of mdoland

ASKER

Great! Could you explain that thing with static command that could be possible to use throughthe mouse?
ASKER CERTIFIED SOLUTION
Avatar of AmigoJack
AmigoJack

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial