Wednesday, May 25, 2016

Lock a folder without any Third Party Software with simple batch file

This post will help you to know some basics in batch programming.

Here you can hide a folder with out any third party software with some small set of batch .

In eral life, we face many times Virus problems in various Folder Locking Soft that are available

on the Internet and most of the times the Viruses included in these Soft are undetectable with the

anti-vs. So, what is the best way for locking any content/folder, which can ensure our security & ends

all the possibility of any Virus Infection. Don’t bother friends, here is the solution of your problem, today

I am going to show you that how can you lock your own personal content/folder without any

Just follow these Instructions :

1- Open Notepad.

2- Copy following :



title Folder Locker

if EXIST "Control Panel.{21EC2020-3A-1069-A2DD-08002B30309D}" goto UNLOCK



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.



ren Locker "Control Panel.{21EC2020-3A-1069-A2DD-08002B30309D}"

attrib +h +s "Control Panel.{21EC2020-3A-1069-A2DD-08002B30309D}"

echo Folder locked

goto End


echo Enter to Unlock folder

set/p "pass=>"

if NOT %pass%==Your here goto FAIL

attrib -h -s "Control Panel.{21EC2020-3A-1069-A2DD-08002B30309D}"

ren "Control Panel.{21EC2020-3A-1069-A2DD-08002B30309D}" Locker

echo Folder Unlocked successfully

goto End


echo Invalid

goto end


md Locker

echo Locker crted successfully

goto End


3- Write Your in red marked bold ar (Delete type Your and Enter

Your ).

4- Save This file as a locker.bat

5- Open this locker.bat file

6- You can see that new “Locker” Folder is Crted.

7- Put Your Important Data in this “Locker” Folder.

8- Reopen “locker.bat” File. It’s Show message – Are u want to save this(Y/N)

9- Enter Y.

10- You can see that Your Locker Folder is Vanished.

11- To Reopen File -> Open locker.bat File and Apply Your .

Now you can see your Locker Folder and you can see your data.


No comments:

Post a Comment