Locking a Folder by Notepad Trick:
- First open the Notepad. (Press Windows Key+R then type Notepad and press Enter)
- Then Paste the following code in the Notepad.
- Replace iTTimesbd with your own Password.
cls
@ECHO OFF
title iTTimesbd.Com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Buddy are you sure to lock this 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 MyFolder "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 Your Secured Folder
set/p "pass=>"
if NOT %pass%== iTTimesbd goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Yay! Folder Unlocked successfully
goto End
:FAIL
echo Sorry Bro Invalid password!
goto end
:MDMyFolder
md MyFolder
echo MyFolder Created Successfully!
goto End
:End
- Then Save the file as Lock.bat (Must be saved with .bat extension).
- Now double click on Lock.bat and a new folder will be created with name My Folder.
- Then Paste all the data that you want to protect into the newly created My Folder.
- Then again double click on Lock.bat.
- A Command Prompt will open with a question for you: Buddy are you sure to lock this folder?
- Now press Y key and press Enter. Immediately the My Folder file will be locked and hidden.
To Access the Locked Folder:
- Double click on the Lock.bat once again.
- A Command Prompt will open to ask you to Enter the Password to Unlock Your Secured Folder.
- Now enter your Password and press Enter. Immediately the My Folder file will appear and you can access it.
Stay with www.iTTimesbd.com for more IT related Post
No comments:
Post a Comment