Hi everyone! In this post, I will show you with detail about locking any folder in Windows. Before continue, check out my other post on locking folder using cmd from here.
Suppose you want to lock the folder "hack" which has the path "e:\hack".
- Open notepad.
- Type ren e:\ hack hack.{645FF040-5081-101B-9F08-00AA002F954E}
- Save it as lock.bat
- Now open batch file.
- Your folder will change to Recycle Bin with the name hack, so no one can access it now.
- Whenever someone would try to access this folder, recycle bin will get opened.
- For unlocking the folder, create one more batch file with same way and type ren hack.{645FF040-5081-101B-9F08-00AA002F954E} hack in it.
- Save it as unlock.bat
- Recycle Bin will change back to original folder.
Thank you for your comment.