Create a BAT file:
cls
@ECHO OFF
title Folder Locker
if EXIST "Microsoft.System.{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure and 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 Locker "Microsoft.System.{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}"
attrib +h +s "Microsoft.System.{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}"
echo Folder locked
goto End
:UNLOCK
echo ........................
set/p "pass=>"
if NOT %pass%==XXXXX here goto FAIL
attrib -h -s "Microsoft.System.{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}"
ren "Microsoft.System.{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
************************************************************************
for w7 use
"Microsoft.System.{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}"
For XP
"Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}"
cls
@ECHO OFF
title Folder Locker
if EXIST "Microsoft.System.{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure and 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 Locker "Microsoft.System.{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}"
attrib +h +s "Microsoft.System.{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}"
echo Folder locked
goto End
:UNLOCK
echo ........................
set/p "pass=>"
if NOT %pass%==XXXXX here goto FAIL
attrib -h -s "Microsoft.System.{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}"
ren "Microsoft.System.{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
************************************************************************
for w7 use
"Microsoft.System.{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}"
For XP
"Control Panel.{21EC2020- 3AEA-1069- A2DD-08002B30309 D}"
No comments:
Post a Comment