Lock folder without any software:
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u 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-
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%== type your password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-
ren "Control Panel.{21EC2020-3AEA-1069-
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
2. Firstly open a notepad and then put code in notepad.
3. You will find “type your password here” in that code (Without quotes) so just write your password in place of “type your password here” (Without quotes)
4. Save this notepad as Locker.bat anywhere you wish
5. Then double click on Locker.bat.
6. when you double click on this it will create ‘Locker’ folder automatically, After creating of this folder place the contents you want to lock inside the Locker Folder and run locker.bat again, So it will ask to lock this folder… So just type “y” (without quotes) then press enter. Your folder get dissappered that means you locked your folder.No one can see your files of your locked folder.
7. Now if you want to unlock folder then again double click on Locker.bat, It will ask your password so just enter password and then press enter, Your folder get appeared.
No comments:
Post a Comment