06-09-2012, 08:51
|
|
|
חבר מתאריך: 14.11.10
הודעות: 66
|
|
קוד:
@ECHO OFF
cls
color 30
IF EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" GOTO UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
set /p "cho=Enter Password to unlock the folder , {quit to exit} > "
if %cho%== quit goto END
if %cho%==1234 goto LOCK
REM Try Agian
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
pause
goto End
:UNLOCK
set /p "pass=Enter Password to unlock the folder , {quit to exit} > "
if %pass%==quit goto END
if NOT %pass%==1234 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
PING 1.1.1.1 -n 1 -w 2500 >NUL
goto End
:FAIL
echo Invalid password
goto UNLOCK
:MDLOCKER
md Locker
echo Locked Folder as been created successfully
echo and the folder is locked as well.
pause
goto LOCK
:END
בהצלחה
|