4/18/2014

Lock/Unlock Folder Only Using Command Prompt

We're going to learn how to lock/unlock folder by using command prompt without using any software's. There is so many software's available in market for locking the folder. This is the one of the way to lock folder using command prompt. Only the problem with Folder lock software's is if you forget the password or someone changes your password you goes into problem.
In your PC you want to prohibit unauthorized usage of your data need to lock the folder in your absence.
Best way to lock the folder is lock the folder using command prompt. It is not a big deal,and not more critical anyone can do this, if you are not expertise in command prompt also. Now I’ll show the step by step procedure with screen shots. Visit daily www.eduwalkin.com for amazing PC tricks.

  • Open command prompt first. 
  • If you want to open command prompt goto start search for cmd (or) goto (windows key +r) run type cmd press Enter. 
  • How To Lock the Folder : In command prompt enter the path of the folder i.e what folder you want to lock. 
  • This is the command for How to lock the folder. 
cacls “path of the folder” /E /P everyone:n 
n-means no access
  • For example if I want to lock my books folder, which is in study folder in E drive. 
  • I select path of the folder. 
  • Let us see detailed process in below screen shot. 



  • If the folder is locked successfully then a message will displays in next line as processed followed by path of the folder. 
Processed dir: E:\Study\Books\Java (Path of the folder).
  • How To Unlock the folder: If you want to unlock the folder the procedure is same, but only the difference is we’ll give f in the place of n.
 cacls “path of the folder” /E /P everyone:f 
  • After unlocking the folder also same message will be displayed as processed followed by path of the folder.

No comments:

Post a Comment