Batch Programing
Cool batch file to lock and disguise a folder.
Move any files you want to be hide in your locker, double click the bat again and you will be asked to lock when the folder is locked it will dissappear
to unlock the folder double click the bat file enter any pass. or make up one of your own and input it into the code
@ECHO OFF
cls
color 4b
Title SUMIT'S FOLDER LOCK SYSTEM
echo For updates email sumuuuuuuu@gmail.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto MSG
if %cho%==N goto MSG
echo Invalid choice.
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
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%== secret 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
pause
goto End
:FAIL
echo Invalid password
pause
goto UNLOCK
goto end
:MDLOCKER
md Locker
echo Locker created successfully
pause
goto End
:MSG
echo Folder is unprotected
pause
The default password set is 'secret' .without ant cotes
You can set your own password by going to the line written "if NOT %pass%== secret goto FAIL" and change secret to your own password.It can be edited in any word editor
Move any files you want to be hide in your locker, double click the bat again and you will be asked to lock when the folder is locked it will dissappear
to unlock the folder double click the bat file enter any pass. or make up one of your own and input it into the code
@ECHO OFF
cls
color 4b
Title SUMIT'S FOLDER LOCK SYSTEM
echo For updates email sumuuuuuuu@gmail.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto MSG
if %cho%==N goto MSG
echo Invalid choice.
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
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%== secret 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
pause
goto End
:FAIL
echo Invalid password
pause
goto UNLOCK
goto end
:MDLOCKER
md Locker
echo Locker created successfully
pause
goto End
:MSG
echo Folder is unprotected
pause
The default password set is 'secret' .without ant cotes
You can set your own password by going to the line written "if NOT %pass%== secret goto FAIL" and change secret to your own password.It can be edited in any word editor
Comments
Post a Comment