Thursday, May 29, 2014

How to lock folder using CMD

1)Open CMD from start menu.
2) Go on folder which you want to lock.
     'cd' command is used to change the path from one folder to another.
3)Now type following command in cmd...
" cacls 'Folder name' /e /p everyone:n
snap of folder lock command for folder named 'private'.
Once you lock folder it will deny all access permissions for all users.
It can not be copy,cut or deleted.
It also shows 0 KB size for that folder. 

Now to unlock that folder use 'f ' instead of 'n' in command.
>cacls "folder name" /e /p everyone:f
snap to unlock folder
folder name 'private'

Enjoy ......


No comments:

Post a Comment