Header Ads Widget

Responsive Advertisement

How can Create Password Protected Folder in Computer Without using any software

How can Create Password Protected Folder in Computer

 (Without using any software)



There are so many software available to create password protected folder in your computer. But you can create password  protected folder without any third party software. 


To creating password protect folder in your computer just follow the  steps.


  • First you should create a folder in your computer.




  • Create a new text document inside the folder : Right click >>New>>Text document




  • Now open the text document and copy and paste below codes.



  
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%== PASSWORD_GOES_HERE 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

  • Replace PASSWORD_GOES_HERE with password that you want to set for your password protected folder
  • Now goto file menu and click save option and save it as " Locked.bat"



  • Now you can delete original text file from this folder









  • After deleting the text file double click on "Locked.bat" a private folder now visible in your folder. In this folder you can store your private files




  • Then you need to double click on locked.bat, That time  press"y" to  conform  lock your folder






  • Now your folder will disappear (Private folder)





  • Click on Locked.bat file again and give your password to access your files again.







Team TZ