Minggu, 08 Januari 2012

The easy way to lock a folder with a password so that files can not be accessed by others

I want to share about a tutorial on computer tricks for you, this time regarding my post on how to protect folders with a password with a lightweight software. but this time we will try how to lock folders with passwords without using the software. but using a script.

Definitely curious is not it??. I discussed about The easy way to lock a folder with a password so that files can not be accessed by others
1. open your windows explorer, right click - new - text document
2.copy the following script into a text document that has been made ​​earlier without
the quotes
" Quote:
Quote: cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 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 "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 password to unlock folder
set/p "pass=>"
if NOT %pass%== your password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End "

in writing in italics above the red colored "your password" filled with the password or key words to access the folder
consider the password "12345"

the script / code should be like

"Quote:
Quote: cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 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 "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 password to unlock folder
set/p "pass=>"
if NOT %pass%== 12345 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End "

3. save the text document with the name "locker.bat". and select all files in the save as type


5. double click the file called locker.bat earlier
6. then will appear a command / command as below. press the letter y on the keyboard and click enter

6. if you done it, it will display a folder named private. in a private folder where you put important files files that it seems other people do not know and want the password
7. if you've put your important files to a private folder, and you want to lock it with a password. do go back to no.4 and 5
8. and if you want to access a folder that dipassword earlier, click the file and enter your password locker.bat earlier, and then press enter

9. enjoy it. if confused and have not managed to please ask, because I will reply and provide a solution as soon as possible

0 komentar:

Posting Komentar

Design by araba-cı | MoneyGenerator Blogger Template by GosuBlogger