How to Lock Your Own Folder
This trick from IndoForum.Org, lock a folder using Command scripts or DOS scripts. To lock a folder using this script is very easy. This trick can help to secure the folder.
Follow the following steps how to use it:
- Open your text editor, e.g. notepad.
- Copy scripts code below then save the code, give the name with bat extension, e.g. “lock.bat”. if you do not create a script download the scripts here.
- Run the file, this file will create a folder called name “Fauzan”.
- Copy your file to “Fauzan” Folder.
- Run again the lock.bat file to lock the folder.
- To open the folder click again lock.bat file.
Note: Password =”123abc”, you can alter the password by replacing red word.
——- Script Code ————————-
@ECHO OFF
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Fauzan goto MDLOCKER
:CONFIRM
echo Lock your 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 Fauzan “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Foldernya dah terkunci
goto End
:UNLOCK
echo Enter your password to open Folder
set/p “pass=>”
if NOT %pass%== 123abc goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Fauzan
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Fauzan
echo Create fauzan Folder
goto End
:End
————————————–
Email Subscription
Stay Updates with this Blog. Get Free email newsletter updates, Enter your Email here:Don't forget to confirm your email subcription
You can leave a response to this article, or trackback from your own site.
One Comment to “How to Lock Your Own Folder”
This do not work…