How many times have you wished of a software using which you can hide or lock files, restricting its access to other unwanted users. Although there are various software available in market using which you can easily lock/hide files but, i personally dont trust them because most of them are bloatware or spyware.
In this post i am going to share a simple yet powerful way of locking and hiding important files using a the following method. Follow the instructions to make you own Locker ( Without any software !! ) :
- Open notepad.
- Copy the following code in notepad file :
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 u 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 folder
set/p "pass=>"
if NOT %pass%==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
- Change the “YOUR PASSWORD HERE” with your password.
- Save it as batch file ( with extension .bat ) For eg. Locker.bat
- Now you will see a batch file. Double click it to create a folder locker ( A new folder named Locker would be formed at the same location )
- Thats it you have now created your own locker and that too without using any software !
- Brings all the files you want to hide in the locker folder.
- Double click the batch ( As created above ) file to lock the folder namely Locker.
If you want to unlock your files, simple double click the batch file again and you would be prompted for password ( In DOS window ). Enter the password and enjoy access to the folder.
yep it’s Gr8
this is a great one.. its really useful your such a great.. thanks for sharing your knowledge with us
tHIS doesn’t work for me
One way of avoiding change of password is if u rename the extension .bat to sys.. This way the person will not know this is the file to change.. Whenever you wana see ur files back, change it to .bat again, enter password, enjoy..
However, it isnt very useful coz if we turn on the “show hidden files” from Tools->Folder options, The file pop up anyways.. Password.. Or no password..
Regards…
Sir this is a nice one! Bravo!
But,
if the location of the batch file is simply where the file is, isn’t it a little too easy to anticipate for others to open the batch file and replace the password?
i mean is there any way you could also lock the batch file? so it can’t be edited that easy?
and is there any way we to hide the password as we type it? like asterisks? cause i can see it as i type it…
You’ve pointed out the issues which would have been taken care of had this been a ‘real’ way to protect your files. What I shared above is just for fun!
This is totally awesome man. Thanx
thank!!! i realy need something simple like that….!!
HOW TO CHANGE PASSWORD …………IN THIS SOFTWARE
Rename the file to .txt, open it with Notepad and enter a new password!
it’s work great!!
thanks very much for your great sharing
Is there anyway to link this to the matrix code thingy that u mentioned in another post/
btw. love this. works perfectly (perfectly enough for my purposes anyway)
by link i mean like if you put in the wrong password it opens the matrix code .bat file thing.
hope thats clear enough to understand…..
i hide my files with notpad but it not unhiding.
to see the locked and hidden file, you just have to uncheck the ‘Hide protected system files(recommended) box in Folder Option
you will see the file named ‘Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}’
to see what in this ‘Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}’ file, just rename the file to anything you like
you now can open the file and see what inside it
This isn’t very secure. Someone could simply load the file into Notepad and change the password themselves.
Cool trick though
when i try to re-lock it a new folder comes up help
That’s just a temporary folder that appears for a very short duration once you lock protected folder.
Dear Mr. Paritosh
Hope you’ll be fine
I have only one question regarding the lock folder without any softwere. Is it possible that when we are going to enter password and it shows only stericks (***) instead of alphabets
Thank You
Have a Great Day for You
Shakir Afridi.
You mean in dialog box? I don’t think so. BTW I am not a programmer of any sort so please take help of someone who’s good with that
Thank You for You Reply.
there is no point in this when hidden files and folders are shown.
and u can doit in the control panel folder option>view tab …
Coool trick bro…
thnx.
This doesn’t work! It shows: Error code ’911′ Invalid character: 2 Line:2. Fucking Shit you wasted my life’s 5 minutes! Paritosh Sux!
The code mentioned above is working perfectly fine. I believe you didn’t copy the entire code properly. And my friend you should first make sure you have done the things right before blaming others
can we block the nst using notepad
Sorry, i didn’t get you. What do you mean by “nst”?
and how can the password be protected with winrar
what about if some one delete my locker file that i made
The locker folder becomes invisible once you lock that folder. Therefore, it can’t be deleted.
what if some one deleted the .bat file?
and you can right click to the .bat file and change the password or see it. so whats the use of loking…?
As i said in my previous comment, you can password protect it using winrar.
if we delete the .bat file, then is there any way to retrive the data that we locked in the locker..??
I think what red4oy is asking is if it’s secure being that all someone has to do is right click on the .bat file and click edit to see what the password is. Is there a way to keep them from doing that, which I doubt.
It isn’t a secure way of hiding your data but certainly works. As far as editing of .bat file is concerned, you can make it read only and/or password protect it in a rar file.
cant you go in to edit the password you made? would this cancel the usefulness of the password altogether? is there a way to change this so you cant change the passcode you create?
I didn’t get you
Can you be more clear?
thanks you so much bro. its work.
is its fully save????
plz tell me more tricks to how to unlock vista password. user password plz
You mean safe? Well not completely, but if you do it properly then it is safe. And check out this article to recover password of vista OS.
It works perfectly fine…. However, what will happen if we delete the .bat file after locking the folder?? We won’t be able to retrieve the folder!!
Why would you want to delete that folder and loose your own stuff??
This program works just fine i think u people may not have the file working on you’re computer because this file sometimes does not work on windows 7 and thankyou for the file
Alright, I got everything set up.
But what am I suppose to do when I lock it up?
It asks me if I want to lock it and then I type in “Y” but….nothing happened. So then I pressed “Enter” right after typing “Y” and still nothing changed.
I double clicked on the batch file and it asked me the same question “Do you want to lock this folder?”
lol….it’s trying to fool me I think….
There was an error in the code. I have rectified it. I hope it will work fine now.
Okay, I’ll try it now.
[After trying it]
YAY! It works!!
Thanks! ^^
this didnt work when i tried as bat file ,but as a program file(.exe) said it was illegal so i give
This works with .bat extension only. I have tried this and it is working though it doesn’t works on some machine’s running windows 7.