HackingUniversity - Hacks . Tricks . How-To's

04 August 2013

How to Protect your Files & Folders without any Software

secret-locker

Usually there are many software’s which can help you lock and protect your files, you can obviously use some password or hide that folder so that only you have the key to unlock or unhide it. Well these software's provide a good protection to overall your files but this protection cost something in matters of money so what if you don’t wanna invest in any of the software's, do you have any good alternative to hide your folder or files well you can do that through Run Command Trick that's basically the traditional version or you can follow the below modern technique.

Though this trick works similar to the manual Run Command Trick but its much more convenient to be applied and to be used on daily basis + its password based, so that means its much more secure. So now we are just gonna use the echo command and create a .bat file that will act as a gatekeeper so as soon as you access it it will allow access to all the files and afterwards you can hide it up again.

  1. Open Notepad ( make a search in your start menu )
  2. Now copy below text to your Notepad & save this as Locker.bat make sure the extension is .bat else it will not work. If you are not good at this thing then you can also download this locker.bat file directly [Link]

    cls
    @ECHO OFF
    title Secret Locker ----------------------- HackingUniversity.in :)
    if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
    if NOT EXIST Locker goto MDLocker
    :CONFIRM
    echo Do you want to hide this Locker, to keep it safe from univited eyes ? (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 Locker Secured !
    goto End
    :UNLOCK
    echo Enter your secret password to unhide the Locker:
    set/p "pass=>"
    if NOT %pass%== 123456 goto FAIL
    attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
    ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
    echo Locker visibility unlocked !
    goto End
    :FAIL
    echo Invalid password
    goto end
    :MDLocker
    md Locker
    echo Locker created successfully :)
    goto End
    :End

  3. So now visit to any drive where you want to hide file and folders and paste this .bat file in that drive, now double on this .bat file and it will create a new folder name Locker.
  4. Now you can copy and paste all the files & folders you want to hide or protect in this Locker folder.
  5. After you have filled that folder with all your files double click that .bat file again and it will open another CMD window and it will ask you either you want to hide this Locker folder just type the Y key and press enter.
  6. Now your folder will be hidden, now if you need to once again unhide that Locker folder just double click on the .bat file and it will ask you to enter the password, the default password is 123456 (if you want to change the password just change the numbers above in Red color with your numeric or alphabetic password.
  7. That’s it guys, now your folder is secured and you can easily access it when ever you want that too without any problem.