In windows system, there are a  many ways available for to protect your files in a folder with password. In most of the we required third party software for doing this. In this post we have created a batch script that can able to protect your files in a folder with password. The most important thing in this batch script doesn't need any third party softwares.

Password Protect Folders without Softwares in Windows

How to Create a Password Protected Folder


1. Open notepade, then copy and paste the following code.
cls
@ECHO OFF
title dinetricks.blogspot.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Secure 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 Secure "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter the Password to unlock folder
set/p "pass=>"
if NOT %pass%== dinetricks goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Secure
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Secure
echo Secure created successfully
goto End
:End


Default password is dinetricks. If you want to change the password, change "dinetricks" to your secret word.

2. Now, Save this document to your destination folder as "locker.bat" and select "Save as type" as all files.
Save as Notepad

3. Now open newly created batch file by double click.  Command prompt will be open with "Are you sure you want to lock the folder(Y/N)"? message will be shown. Then type y then press enter. This batch fill will create a folder "Private". This folder is a place where you can store all your private files.

4. After moving your files re-run the same file to close that private folder.

0 comments:

Post a Comment

 
Dine Tricks © 2014. All Rights Reserved. Powered by Blogger
Top