Nov 18, 2015

How to Password Protect Folder without any software

How to Password Protect Folder without any software
Sometimes you have personal stuff you want to hide from your computer. You can protect your Folder with a Password and completely hide the folder in Window 7. You don’t have to use any software to protect your folder. Just follow the steps given below:-

Step 1: Open notepad (Click Start> Run Type "notepad" and Enter)

OR:  Right Click and Select New>Text Document.

Step 2: Copy Paste the Code given below in that notepad file.

title TariqYousuf Folder SAFE
if EXIST "RecycleBin.{645ff040-5081-101b-9f08-00aa002f954e}" goto UNLOCK
if NOT EXIST SAFE goto TariqYousuf
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
if %cho%==k goto TariqYousuf
 if %cho%==K goto TariqYousuf
echo Invalid choice.
ren SAFE "RecycleBin.{645ff040-5081-101b-9f08-00aa002f954e}"
attrib +h +s "RecycleBin.{645ff040-5081-101b-9f08-00aa002f954e}"
echo Folder locked
goto End
echo Enter password to Unlock Your Secure Folder
set/p "pass=>"
if %pass%==k goto K2H
 if %pass%==K goto K2H
if NOT %pass%== tyk786 goto FAIL
attrib -h -s "RecycleBin.{645ff040-5081-101b-9f08-00aa002f954e}"
ren "RecycleBin.{645ff040-5081-101b-9f08-00aa002f954e}" SAFE
echo Folder Unlocked successfully
goto End
Echo password mismatch. Please check your password and try again.
goto end
echo SAFE created successfully
goto End
 : TariqYousuf
Step 3: "tyk786" written in red color is the Password in the above code. Replace it with the Password of your choice.

Step 4: Save that file with any name like “Tariq.txt” and Change the extension from ".txt" to ".bat"
Note: If you are not able to see the extension or don't know how to do it. You may read my post on how to unhide file extension.

Step 5: 
  • Double Click on “Tariq.bata new Folder with name “SAFE" will automatically be created.
  • This "SAFE" Folder is your secret folder. Just move or save anything in that folder that you want to lock or hide with a password. 
  • Now you are ready to lock your folder.

Step 6: 
  • Again double click on “Tariq.bat” file, a command prompt will appear, just press "Y" and hit Enter to hide that folder. 
  • You will see that, the "SAFE" folder has been hidden. 
  • To unhide that folder again, Double click on “Tariq.bat " file again, and in Command Prompt, just enter your password and hit Enter.
Done, you can now see that folder again.

Blogger Widgets