How To Protect A Folder With Password In Windows
This post will definitely helps you a lot . We always want our files safe and private. As we have to share our laptops and pc with our friends at that time it is important to secure and protect some of our private data which we won’t want to share with them.

Steps To Protect a Folder With Folder Protection:


  • Click Start and Open Notepad.
  • Copy the below code and paste it in the notepad
  • cls
    @ECHO OFF
    title Folder Private
    if EXIST “TechViral 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 “TechViral Locker”
    attrib +h +s “TechViral Locker”
    echo Folder locked
    goto End
    :UNLOCK
    echo Enter password to unlock folder
    set/p “pass=>”
    if NOT %pass%== techviral goto FAIL
    attrib -h -s “TechViral Locker”
    ren “TechViral Locker” Private
    echo Folder Unlocked successfully
    goto End
    :FAIL
    echo Invalid password
    goto end
    :MDLOCKER
    md Private
    echo Private created successfully
    goto End
    :End 


  • Now save it as Folderlock.bat.
  • Now run the FolderLock.bat at the saved location now a folder named “Private” will be created at that directory.
  • Now place you files which you want to protect in the “Private” folder.
  • Now again double click the Flock file and it will ask you do you want to lock (Y/N).
  • Type Y and the press enter, Folder “Pirvate” will then gets hide.
  • Now again click on the FolderLock.bat file and it will ask you the unlock password and the password 
  • Thats it you folder is now secured with password everytime you want to secure your files run the FolderLock.bat and place your files in the “Private” folder and again run FolderLock.bat file which will hide the folder “Private“.
Axact

Author

My name is Dave, Am a cool IT Geek, computer analyst and a tutor. I do alot of computer stuffs like programming, web development, blogging, data administrator, computer security and lots more. Feel free to contact me if want more informations and tutorials.

Post A Comment: