-
-
Save arspuja/ee5fb22767f26e17f11f5eb4c7711fb4 to your computer and use it in GitHub Desktop.
Simple Lock and Set Password for Folder on Windows OS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cls | |
@ECHO OFF | |
title Simple Folder Locker by ARSPuja | |
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK | |
if NOT EXIST Locker goto MDLOCKER | |
:CONFIRM | |
echo Anda yakin ingin mengunci dan menyembunyikan folder "LOCKER" ? (Y / N) | |
set/p "cho=>" | |
if %cho%==Y goto LOCK | |
if %cho%==Ya goto LOCK | |
if %cho%==ya goto LOCK | |
if %cho%==y goto LOCK | |
if %cho%==tidak goto END | |
if %cho%==Tidak goto LOCK | |
if %cho%==n goto END | |
if %cho%==N goto LOCK | |
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 | |
goto End | |
:UNLOCK | |
echo Masukkan password untuk membuka folder "LOCKER" ( case sensitive ) | |
set/p "pass=>" | |
if NOT %pass%==arspuja2021 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 | |
goto End | |
:FAIL | |
echo Invalid password | |
goto end | |
:MDLOCKER | |
md Locker | |
echo Locker created successfully | |
goto End | |
:End |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HOW TO USE?
CARA MENGGUNAKAN?