Thursday, March 18

How to lock any folder in Xp,Vista and Window7


Run> Cmd >


Now in the command prompt


For example : I have a folder on the desktop

Here we have a folder on desktop which is names as :::::Image:::::
I have to lock this folder......
go to command prompt

Step I: go to that address i.e. desktop for this
use command

cd desktop

Step II: Type following command as in the figure


cacls image /e /p everyone:n

Now your file is locked..........
#here image is your folder name
# e for edit
# p for user permission
# and n for no access


To unlock that file
Use f instead of n

cacls image /e /p everyone:f


Now this folder will be unlocked............


Type


CD desktop

No comments: