@echo off
:LOOP
cls
echo Enter Password for you...lock Folder
set /p P=Password :
set /p D=Confirm :
if not %P%==%D% goto LOOP
cd >DIR.TMP
for /f "tokens=*" %%A in (DIR.TMP) do set B=%%A& set C=%%~dpA& if "%%A"=="%%~dA" (goto ERR) else (goto OK)
:ERR
@echo [ Err ] %B% Unlock...
goto END
:OK
@echo [ OK ] %B% Locked...
Echo [.ShellClassInfo]>Desktop.INI
Echo CLSID={645FF040-5081-101B-9F08-00AA002F954E}>>Desktop.INI
attrib +r "%B%"
attrib +r +s +h "%B%\Desktop.INI"
echo @set /p P=Password : >"%C%Key.BAT"
echo @if exist "%B%\%%P%%.BAT" call "%B%\%%P%%.BAT">>%C%Key.BAT
echo @if not exist "%B%\%%P%%.BAT" echo Invalid Password...>>%C%Key.BAT
del /arsh "%B%\*.BAT"
echo del /arsh "%B%\Desktop.INI">"%B%\%D%.BAT"
echo cd "%B%">>"%B%\%D%.BAT"
echo start.>>"%B%\%D%.BAT"
attrib +r +s +h "%B%\%D%.BAT"
cd \
:END
del "%B%\DIR.TMP"
set A=
set B=
set C=
set D=
set P=
|
ไม่มีความคิดเห็น :
แสดงความคิดเห็น