How To Lock Folder With Command Prompt?

WP Engine
Lock Folder
Want to lock a folder without using any software / password in Windows, follow these simple steps:
  • Go to start> run> cmd
  • In command prompt, Type cacls "path_of_folder" /E /P everyone:n
  • To regain access type: cacls "path_of_folder" /E /P everyone:f
Note: Do not lock C:\ drive using this trick otherwise Windows will not boot next time. I have already explained one more method of folder locking using Batch. You can check it from here.

Share this

Related Posts

Previous
Next Post »

7 comments

comments
Anonymous
January 3, 2012 at 9:33 AM delete

dude i cannot gain access to my folder now please help..

Reply
avatar
Anonymous
January 4, 2012 at 7:55 AM delete

it shows
The filename, directory name, or volume label syntax is incorrect.
wat shud i do now

Reply
avatar
Anonymous
January 9, 2012 at 11:36 PM delete

i have entered the correct path but still its showing the same message..
trick doesnt succesfully works .

Reply
avatar
Anonymous
March 23, 2012 at 12:22 PM delete

f means full permissions.
n means no permissions

Reply
avatar
Anonymous
October 15, 2012 at 6:55 PM delete

what to do to regain access to logical drive d:

Reply
avatar
Anonymous
June 8, 2014 at 8:39 PM delete

i try it again and again please help me

Reply
avatar