-->

Voice of developer

CSIT UPDATE is designed and developed by Gautam Phuyal and Gaurav Chaulagain. For any query please contact our facebook pageCSIT UPDATE

Tuesday, February 13, 2018

How to make a simple folder locker in windows 10 using CMD?

How to make a simple folder locker in windows 10 using CMD?

Are you fed up from getting your important files getting accessed ? If your answer is yesthen you are about to learn a easy trick that will lock your folder and asks for a password.

 Step 1: Go to the folder where your important files are stored.
 Step 2: Right click your mouse. Hover over new then double click in text document.
Step 3: Then copy & paste the codes written below in the text document :
(DO NOT COPY “ []” )
[
cls
@ECHO OFF
title My Folder
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Secure goto MDLOCKER
: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 Secure "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 the Password to unlock folder
set/p "pass=>"
if NOT %pass%== PASSWORD goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Secure
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Secure
echo Secure created successfully
goto End
:End
]
[note: change the PASSWORD into the any pass code of your choice]
Step 4: Click “save as” and type any name you like and put the extension as “.bat” after the file name and change the “save as type” to “All Files
Step 5: open the .bat file created.Click the .bat file and you can see a folder name “secure” is created.
Step 6: Open the .bat fileA cmd screen will ask you a message and you have to click “Y” or “y” if you want to proceed
Step 7: Again click the .bat file and it will ask you the password you want to set up.
Step 8: Then transfer the important files in the secure folder. Then again click the .bat file. Then it will show the following message then type “Y” for further proceeding.
Step 9: You will see the “secure” folder vanished.You can get access to the folder by clicking the .bat file,again. Then you will be asked to enter your password.
Step 10: Delete the text file and make sure you hide the .bat file.
 Happy Locking !!

No comments:

Post a Comment

Pages