HOW TO LOCK A FOLDER WITHOUT ANY SOFTWARE IN WINDOWS?
This is very useful trick so that you can protect your files/folders in a windows machine!
Just type the following code in a notepad and save it as *.bat !
cls
:End
@ECHO OFF
title Folder Locker v1.1
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Do you want 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 Command !!
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder Locked Successfully !
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==temppass goto error
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:error
echo Error wrong password !
goto end
:MDLOCKER
md Locker
echo Locker Folder created !
goto End
Save it as "filename.bat" NOTE:It must have ".bat" as extension
After opening it, This will create a folder called "Locker"
Put the files which you want to lock in the "Locker" folder
& Close the application.
Comments