How to Lock a Folder Using a Batch File
1. Open Your Notepad
2. Now Copy below code or open link and paste it in notepad.
Link:- FOLDER PASS SCRIPT
cls
@echo off
title Folder Locker
IF EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" GOTO UNLOCK
IF NOT EXIST Locker GOTO MDLOCKER
echo Folder Created.
:CONFIRM
echo Are you sure you 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 "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder Locked.
GOTO END
:UNLOCK
echo Enter password to unlock the Folder :
set/p "pass="
IF NOT %pass% == Your-Password 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 Folder created.
GOTO END
:END
3. Now double click on FolderLock.bat file then a new folder named as Locker is created.
4. Save your files in Locker folder then again double click on the FolderLock.bat, a prompt is displayed.
5. To lock the folder(Locker) press "y " in the prompt, to unlock press "n" in the prompt.
Test Comment
ReplyDeleteHow to Lock a Folder Using a Batch File
ReplyDeletehttps://tricksideas.blogspot.in/2018/01/how-to-lock-folder-using-batch-file.html
ReplyDeleteNice amazing and excellent blog post i really like it thanks for sharing with us. i also share it on GBWhatsapp Apk with friends
ReplyDelete