No Tags Found!


Dear All,

Good morning. Here is the procedure to lock your folder without any software. Please try it out. I hope you find it very useful.

To lock a folder without any software:

Open Notepad and copy the code below. Save the file as locker.bat. When you run it for the first time, it will create a folder named Locker automatically for you. Don't forget to change the password in the code where indicated.

After the Locker folder is created, run locker.bat again. It will prompt you to press Y, and then the Locker folder will disappear. To access the folder again, simply run locker.bat and enter your password.



cls

@ECHO OFF

title Folder Locker

if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK

if NOT EXIST Locker goto MDLOCKER

:CONFIRM

echo Are you sure you want to lock the folder (Y/N)

set /p "cho=>"

if %cho%==Y goto LOCK

if %cho%==y goto LOCK

if %cho%==n goto END

if %cho%==N goto END

echo Invalid choice.

goto CONFIRM

:LOCK

ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

echo Folder locked

goto End

:UNLOCK

echo Enter password to unlock the folder

set /p "pass=>"

if NOT %pass%==type your password here goto FAIL

attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker

echo Folder unlocked successfully

goto End

:FAIL

echo Invalid password

goto end

:MDLOCKER

md Locker

echo Locker created successfully

goto End

:End



Noor

From India, Mumbai
Acknowledge(0)
Amend(0)

Hi Noor, Excellent Work!! Very useful everyone.. Actually i wanted something like this to manage my folders.. your post helped me a lot.. Keep on posting stuffs like this.. Cheers, Swati :)
From India, Bangalore
Acknowledge(0)
Amend(0)

Dear Mr. Noor,

Apparently, it seems valuable, but the same gets opened even if you do not put your set password. It accepts everything to open, which is a threat to security issues. Please update me if I am making any mistakes in following you.

Regards, Pankaj Sharma

From India, Chandigarh
Acknowledge(0)
Amend(0)

Hi Noor,

There is a bug in this program. It opens with whatever text you enter as a password. Then the folder won't be secure. Something should be done to make the program secure.

If this bug is fixed, then that program will be secure and useful.

Cheers,
Swati

From India, Bangalore
Acknowledge(0)
Amend(0)

Hi Siva,

That program is about locking your folders. You can keep your documents safe and secure using this program. It can be opened only by you. You can save all your confidential documents in this folder, lock it, and unlock it by entering your password.

However, there is a bug in this program as it opens with any password. If anyone skilled in programming can fix this, then it will be a secure program.

I hope I have made you understand what this program is about.

Cheers,
Swati :)

From India, Bangalore
Acknowledge(0)
Amend(0)

Hi,

Thank you for the brilliant post. However, even if I enter the wrong password, it is still working. I set "password1" in the field where you type your password, but even if I type "password2," "asdasd," or "asdasd," the folder still opens.

Any suggestions, please?

From India, Bangalore
Acknowledge(0)
Amend(0)

This problem is like this:

```bash
if NOT %pass%==type password here goto FAIL
```

In this line of the program, you need to remove "type password here" and enter your password. Now, try this. It won't open with any other password.

From India, Tiruppur
Acknowledge(0)
Amend(0)

Not only can you change the name of the folder, but you can also follow these steps: Open the program, go to the Edit menu, select replace, then type "Locker" and replace it with your preferred name for the folder. Save the changes, and you will have the folder named as you wish.
From India, Tiruppur
Acknowledge(0)
Amend(0)

Dear All,

There is a problem in the program: when the folder is shared, it appears on all network systems. What I want is for this folder to require a password for other users to access it, ensuring the files within the folder remain safe.

Please help, as this is very important to me.

Thank you,
Amit Gautam
HR-Executive

From India, New Delhi
Acknowledge(0)
Amend(0)

User input:
Dude,
The tip was very good.
Can you explain technically what is happening?
And any suggestions on how to hide and retrieve the locker.bat file itself, or any other way/tip so that no clue is left that the folder existed and is now locked?

---

Corrected version:
Dude,
The tip was very good.
Can you explain technically what is happening?
And do you have any suggestions on how to hide and retrieve the locker.bat file itself, or any other way/tip so that no clue is left that the folder existed and is now locked?


Acknowledge(0)
Amend(0)

No doubt this is working, but it is very easy to find the password of the folder. Right-click on the batch file and click on "EDIT". Once again, the notepad will open. Here you can easily find the line showing the password:

if NOT %pass%=="your password" goto FAIL

So, in a nutshell, it is still prone to easy hacking.


Acknowledge(0)
Amend(0)

Hi, this is Karthikeyan. Wow, what an amazing program! But one thing I wanted to tell you - could you please think a little more and help me? The folder is getting locked, but we can still delete the folder. Could you please think carefully and ensure the folder cannot be deleted if it's locked, similar to how we can't delete the "System Volume Information" in an NTFS drive.

Acknowledge(0)
Amend(0)

"Urgent Help" Dear Noor, According to your sofware, I change and create file. It was working like Hide & seek but suddnly I’m not to open file while I’m using same password. GR
From India, Delhi
Acknowledge(0)
Amend(0)

Dear Noor,

After creating the folder, I transferred my files, about 400MB. Now the program is not working. Please tell me how I can remove that program. If I simply delete it, I will lose all my data and files.

Please help me out.

GR

From India, Delhi
Acknowledge(0)
Amend(0)

Hi all,

This didn't work. I followed the same procedure, created a folder, and set a password. When I tried opening this from another system on the LAN through RUN, the folder is visible only when "view hidden files" is selected. My colleague can also open the folder.

:(


Acknowledge(0)
Amend(0)

Dear Noor,

It worked really well. Thank you very much. However, anyone can change the batch file and change the password or delete the file. Is there any way to protect the batch file as well?

Regards,
Byomjeet Mishra

From India, Delhi
Acknowledge(0)
Amend(0)

Dear Sir,

I have copied the code in Notepad, saved it as "locker.bat" on the desktop. However, when I double-click the file, it does not open. Could you please explain to me how it works in detail?

I apologize for any inconvenience this may have caused.

My email ID is joydeep25@gmail.com.

Thank you.

Sincerely,
Joydeep

From India, Bhopal
Acknowledge(0)
Amend(0)

Hi all,

I would like to add one thing. Just right-click the batch file and tick the hidden option; it will disappear. To get it back, search for that file from the start menu and again right-click the file. Untick the hidden option, and it will appear in its place. I hope this will add more security.

Thanks,
Joydeep

From India, Bhopal
Acknowledge(0)
Amend(0)

it really works but its working with any password... i mean its not taking a single passcode.... it works with any code you give....
From India, Hyderabad
Acknowledge(0)
Amend(0)

Hi Noor,

FANTASTIC!
It REALLY works! I tried using various other passwords, but if you take precautions of entering the desired password BEFORE saving this dat file, it works.

Thank you,
Keep posting stuff like this...

From India, Vadodara
Acknowledge(0)
Amend(0)

when the batch file opened in edit mode/ edit with visual studio mode by clicking right mouse, password appearing. how to resolve this bug.
From India, Mumbai
Acknowledge(0)
Amend(0)

i am not able to get where to change the PW in the code,and after naming the file locker.bat what exactly next step to follow
From India, Bangalore
Acknowledge(0)
Amend(0)

pls clear where we have type our password and where is locker.bat. i m not getting this in save as option i type or else pls clear
From India
Acknowledge(0)
Amend(0)

Dear friend,

This works well. It is amazing, and I have been looking for something like this to do. Thanks a lot. However, even though the work is being done well and protected, anyone can open it. I mean, anyone can access the password by right-clicking the locker file and choosing to edit. Has anyone checked this?

Thanks,
Murugabadi

From India, Madras
Acknowledge(0)
Amend(0)

It's a really nice post.

But dear professionals, this is a simple yet tricky programming code. Anyone who knows the scripting can break this code (hack the password) and access your Locker Folder.

Go for simple freeware software to lock your folder/file.

From India, Pune
Acknowledge(0)
Amend(0)

Hi Noor, It is meaningless to create such bat file, as one can easily access the file and can know the password to open the folder. But its a great attempt. Bye, take care, krishna
From India, Mumbai
Acknowledge(0)
Amend(0)

CiteHR is an AI-augmented HR knowledge and collaboration platform, enabling HR professionals to solve real-world challenges, validate decisions, and stay ahead through collective intelligence and machine-enhanced guidance. Join Our Platform.







Contact Us Privacy Policy Disclaimer Terms Of Service

All rights reserved @ 2025 CiteHR ®

All Copyright And Trademarks in Posts Held By Respective Owners.