Friday, 21 December 2012

Command prompt hacks

How to lock folder using cacls code in command prompt

You can set permissions on the Files and Folders in Windows so that no one
else can open or access them.
Windows carries Access Control List command to apply the Access security on
the Files and Folders. To disallow all the users from opening a folder named
“locker” on the desktop, perform the following
Steps:
• Create a folder on Desktop with the name locker (You can give the name as you
wish).
• Open Command Prompt. Click Start-> Run-> cmd
• Go to Desktop by typing: cd Desktop
• Now type the command:
  Cacls locker /E /P everyone:n
• Now the folder is locker and no one can access, modify or delete the particular
folder.
• To unlock the folder type this code in cmd
  Cacls locker /E /P everyone:f


No comments:

Post a Comment