Заключете директория с парола без софтуер

Fri, Jun 4, 2010

Tips'n'Tricks

[wp:svejo-net]

Искате да заключите дадена директория с парола но не Ви се занимава със софтуер! Чудите се как става това? Ето го и решението:


  • Създайте нова директория;
  • Вътре в нея направете текстов файл (.TXT);
  • Копирайте в него следния текст:
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%== password here 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
  • След като сте го поставили в текстовия документ отидете на ред 23. Там ще видите думата password променете я с каквата парола искате. Пример:
if NOT %pass%== lenycom goto FAIL - паролата тук е lenycom
  • Отидете на ‘save as’ и променете името на файла на  ‘ locker.bat ‘;
  • Кликнете два пъти върху новия файл (locker.bat) и ще се появи нова директория Private;
  • Копирайте каквото искате в нея и след като излезете от директорията кликнете отново на locker.bat. Ще се отвори прозорец в които ще ви питат дали изкате да заключите директорията. (Y/N);
  • Напишете Y. След това действие вашата Private директория ще изчезне.
  • Ако искате да влезете в нея трябва да отидете на locker.bat да го стартирате и да напишете паролата си.  Ако всичко е наред вашата Private директория ще се появи.

, , , ,

Коментарите са затворени.

PHVsPjxsaT48c3Ryb25nPndvb19hZF8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