You have some important data in your Computer and don’t want anyone to access that. But as your computer is on the network and anytime anyone can access that data or your computer is also used by your friends or relatives whom you don’t want to give access to that data, then you might thinking about downloading a third party software to do that for you. But here is a trick that can be used to lock your folder temporarily until you do not unlock them. After unlocking no one will be able to access your data. Whenever any one try to open that folder, nothing will happen, even folder will not open.

Instructions:
- For demonstration purpose, create a new folder on your desktop and name it as “MyFolder”.
- Now open any text editor like Notepad and then cope and paste the following lines of codes in that file
@echo off
ren MyFolder MyFolder.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0} - Save it on the same directory where you have created that “MyFolder” i.e on the desktop for this example.
- You can name it anything you like, i will call this file lock.bat. You must select “All Files” for “save as type” while saving the file.
- This batch file will now lock your folder and makes it inaccessible to all including you.
- Now to unlock this file you have to create one more batch file which will be having code to unlock this folder.
- So create a new file and then copy and paste following lines of code in that file
@echo off
ren MyFolder.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0} MyFolder - Save this file as well in the same location of your folder and name it anything, but make sure its extension must be .bat and you must check that “save as type” is “All Files” while saving the file.
- Now double click on this newly created file, and your locked folder will be accessible now.
- So, after locking the file, you must place the file, with code to unlock the folder, to some other location, so that when no-one finds that folder inaccessible and try to solve the problem and unlocking the folder for himself, he/she will not be able to have the code to that.
Incoming search terms:
- how to lock a folder in windows xp without software (40)
- how to lock a folder in windows 7 without software (17)
- how to lock folder in windows 7 without any software (14)
it is not working
its working yar