Hello guys,
Everyone of us have some private files on systems which we do not want others to access them. Some hide those files on computer and some others use software to password protect them. But using a software leads to many problems like, getting system hang, also when we format our system the software will be removed automatically which causes your protected files to be public.
So , it is good to password protect a file on computer using a simple notepad trick by using .BAT extension.
What you need to do:
1. Create a random folder with random name somewhere on your computer (for example, on your Desktop).
2. Open Notepad and paste this code to your Notepad
3. Change the word ComputerWorldwithIT (the word I marked in blue from the code), to your desired password. (For example: your name )
2. Open Notepad and paste this code to your Notepad
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private 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 Private "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%== ComputerWorldwithIT goto FAILattrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
3. Change the word ComputerWorldwithIT (the word I marked in blue from the code), to your desired password. (For example: your name )
4. Save As or Press (Ctrl + S) and name it "private.bat" (without the quotation marks), then click on the "Save as Type" option and choose "All Files (*.*)". Save it on the random folder that you created earlier.
5. Close the notepad and open the folder that you created earlier, there should be some program named "Private.bat" that you created earlier, click on it and it should create a new folder named "Private" by itself. Do not change the folder name, as it may caused error.
6. Now you have a random folder with a folder inside of it named "Private", put some private things maybe a pictures, videos, or anything in to the "Private" folder.
7. When you're done, click twice on the "private.bat", and it should give you the option to lock the folder. Press "y" to lock the folder, don't be surprise once you agree to locked the folder, the "Private" folder will disappear along with anything you put inside of it.
8. To spawn the folder, you need to click on the "private.bat" and enter your password, then the folder will spawn by itself. To lock and make the folder disappear again, all you need to do is click on the "private.bat" and an option appear that told you if you want to lock the folder again, you must press "y".
Note: for this trick to work 100% make sure that you computer in "don't show hidden files,folders,or drives" mode as below image
hope u like this post :)
Post a Comment
Note: only a member of this blog may post a comment.