Encrypt your important files with a Notepad trick

You put loads of files in your computer like data files,movies,songs.....etc stuff, of which some may be important and some may not.So if you want to protect those files from others like your brother,sister,friends....you got to do something !
So for this you may use a software ! but today you will know a notepad, command prompt trick to protect your files being used by others.

First you have to write a code in to the notepad to do this.The code required to do this task is shown below.


cls

@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%== PASSWORD_GOES_HERE goto FAIL
attrib -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

Note:I did not write this code,but it is extracted from a website called paste bin. 


Now you copy the code given above,paste it into your notepad and put your desired password in the place which is highlighted above in the code.Now save it as locker.bat file to your required location.





Here is the important point.. Now you open the .bat file,it gives out a folder called PRIVATE and now you copy or drag you important file in to PRIVATE folder.After that you open again the locker.bat file it will ask you to encrypt your selected file so you PRESS Y and ENTER.


That's it your important file is encrypted and is safe from others,even they open it they would not know what the .bat file is about OK.


And in case if you forget the password for the locker.bat file you right click on that file and select edit you will see the code of it and password.


Hope this served you and made you to know a new thing.