Hiding the data in windows is sometimes very necessary for us. As there is no option provided in windows itself to encrypt the data, thus we always approach to get some additional software to hide or lock the data in Windows. Most of these software are paid and those which are free doesn't work properly. Thus, keeping your data safe becomes a big deal for you.


Thus we are providing a very simple and clever trick to lock your files and also hide them from any other user without use of any external software. We are just providing the code  written for windows programming. All you have to do is to paste it in right place and use wisely.


Follow the following instruction and get your files locked with password.


1. Open NOTEPAD and paste the following code into it.



cls
@ECHO OFF
title techversion.in
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Are you sure to lock this 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 MyFolder "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 Your Secure Folder
set/p "pass=>"
if NOT %pass%== techversion.in goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End



2. Click on Save As and save it as .bat file
Example: Locker.bat




3. Now double Click on the batch file you have created. i.e Locker.bat
A new folder will be created.


4. Move all the files you want to lock in ths folder.


5. Again double click on the batch file (Locker.bat). In the shown prompt type Y and press enter.
Your file will be locked and hidden with password techversion.in


6. To view the files again, double click the same batch file and enter the password.


Note : To change the password of your choice just replace it in the code with the text in blue.


Thus you have succesfully locked down your secret files. And the best thing is you dont require any additional software here.
Write your views on this trick and if you know about some more tricks, please let us know them.

Advertisement

0 comments:

Post a Comment

 
Top