Monday, 11 November 2013

make a folder fully protected and undeletable with cmd..




heres a simple command called "cacls" which changes the permission of any foler.
code(just the Red):

c:\Docume~\user> cacls "path of the folder without quotes" /c /p everyone:n

This code will make your folder totally protected.
her "/c" attribute prevents it from deleting and shows error msg and "/p [user]:[permission]" attribute sets the permission that who can use the folder(type "everyone" to apply the permission for each and every user).
Permissions:
n = none
f = full control
w = write
r = read

Note: To retrieve the folder just replace the permission "n" by "f"(without quotes)

[for more info about the command just type "cacls /?" in cmd...]

No comments:

Post a Comment

Popular Posts