Friday, 17 February 2017

How to lock a folder without any software ?

1.Just copy below  text and open new txt file paste it extension is .bat save .
2.Open the bat file and automatically create a My Folder put your file on My Folder.
3.Open the bat file again enter key "Y" and finally locked your folder on My Folder.
4.Open the bat file password is 1234 and enter and unlocked folder
5.Edit the bat file open with text or wright click and edit replace 1234 to your password and save.
 cls

@ECHO OFF
title newthingsinformatics.blogspot.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo 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
:UNLOCK
echo Enter password to Unlock Your Secure Folder
set/p "pass=>"
if NOT %pass%== 1234 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo dai password is wrong
goto End
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End

No comments:

Post a Comment