Saturday, May 24, 2014

Protect your folder with password without any software

Files inside of folders of a computer can be protected with password with different software, But today we are going to make an special program with notepad so that you can keep your file secretly.


What we need?

A Computer and a little bit of knowledge.

Steps: 

  • First open a Notepad and copy following code to the Notepad and save it with batch extension type (eg. private.bat ).
cls

@ECHO OFF

title Folder Private

if EXIST "HTG Locker" 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 "HTG Locker"
attrib +h +s "HTG Locker"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== binayagurung goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
  • You can change password 'binayagurung' with your own.
Now your batch file is made and you can create a private folder protecting with above password (binayagurung).

This private.bat file is still unsecured anybody can change password by editing private.bat file, so now we are going to convert .bat file to .exe file so nobody can change the password that you have created.

Steps for converting .bat file to .exe file

  • First Go to run and type this command without quotation "iexpress", then you will see following picture.


  • Now click next button continuously until you get following picture.



  • Create your project title name like i named it protect, now again click on next button continuously until you get following picture.



  • Now you have to add a private.bat file that you have created earlier in a notepad. Then click on Next button continuously until you get following picture.



  • After that choose a private.bat from the list like i did, Then click on the Next button until you get following pic.



  • Now browse the location where you want to save .exe file ( i have saved private.exe file to desktop) and click on next button until you get following pic.



  • Check the 'No restart' radio button like i did and click on next button then it creates a .exe file then click on finish button.




Now you are done, you have successfully converted a .bat file to .exe file, Now nobody can change the password that you have created.


Any difficulties feel free to comment.

4 comments:

  1. Any difficulties feel free to comment.

    ReplyDelete