Steps:
open notepad
Now copy & paste below code
cacls private /e /p everyone:n
Change private with your folder name.
than save with selecting All Files and name lock .bat (see below)
again open notepad and type below code:
cacls private /e /p everyone:f
Again change private with your folder name and save as key.bat
- now double click on lock.bat to lock the folder
- If anyone tries to open the folder it will give error like as
double click on key.bat to unlock the folder
the cacls stands for change access control list .
More Simple: We attached both .bat files in a zip , you can free to download. extract it and just right click on them and click on edit.
Replace the detail word with your folder name and save it in the directory of your folder.
- cacls command can be used only in NTFS file system