WATCH LIVE CRICKET


Tuesday, October 14, 2014

How to lock a file/folder without any software?

Following are the steps to create a password protected folder
  1. Create a new folder where you have to keep all of your files need to be protected.
  2. Open and navigate into the folder, right click anywhere and go to new—-> text document.
  3. In the text document, copy paste the text given below.
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  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

4. Change the password above to your desired password. Save the file to “anyname.bat” without quotes(like name.bat).
5.  Then delete the document file after the bat file have been saved.
6.  Now, double click on the batch file(or .bat file) . The batch file will create a new folder namedprivate. This is the folder  where all the password protected files will be kept.
private
7.   Now, start adding files and folders to the private folder. Once, you have added all the files and folders in your private folder, click on the batch file again.
8.   A command prompt will appear which will ask for the confirmation.
Now press “Y” and hit enter to lock the folder.
llock the folder
As you press enter, the private folder disappears and the folder is password protected.
9.  If you want to see the hidden and password protected files, folders then click on the “anyname.bat” file again. A   command prompt menu will open up asking you the password. Enter the same password which you have kept above, and   your file will be shown again in the private folder.

No comments:

Post a Comment