banner_ad

How to lock a folder without a s/w

GST & IT Software 4079 views 46 replies

How to lock a folder without a s/w??

Many people have been looking for an alternative way to lock folders without the use of any software. So, here you go.

 Open Notepad and copy the below code and save as locker.bat. Please don't forget to change your password in the code it's shown where to type your password.
Now double click on locker.bat
When you start the first time, it will create folder with name Locker automatically for u. After creation of the Locker folder, place the contents u want to lock inside the Locker Folder and run locker.bat file again.

Below is the code which u need to save in notepad file:

cls
@ ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
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-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
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-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

 

Replies (46)

It's really good... thanks

 

It's really good... thanks

 

plz tell me can this method be applicable for folders only...

Aslo, plz tell me if we will cut and paste the folder to other drive.will this lock property will remain same na...

bingo.........yaar, its awesome thanks 4 that

shafi

Yes Sachin, This method is applicable for folders only...

cut, copy and paste will not delete its locking properties....

admin plz make note..why the last msg was submitted 3 times..

Apurva, It is easy to edit .bat and get the password.

 

Please help on saving the notepad as "locker.bat.".

 

I am understanding it. Should I name the notepad as locker.bat.

It Very good

Thx

sir please can you tell me what it password in this format

i have created but i am not gretting password

 

Dear Apurva

 

Yes it is very good way to keep our documents safe.

 

Thanx

Sumit soni

Dear Apurva,

 

Yes it is very good way to safe our documents easily.

 

Thnx &  Love

Sumit Soni


CCI Pro

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register  

Company
ARTICLESHIP 09 June 2026
Article Trainee

Numbertree LLP

Mumbai

CA Inter

View Details
Company
22 May 2026
Sr. Financial Analyst - Consolidation

Search Synergy

Mumbai

CA

View Details
Company
19 May 2026
Article, CA & Paid Assistant Positions

Aggarwal Sarawagi and Co

New Delhi

CA

View Details
Company
29 May 2026
Company Secretary - Part time

Shaswat initial support private limited

Ahmedabad

CS

View Details
Company
ARTICLESHIP 31 May 2026
Article Assistant

KPRS And Associates

New Delhi

CA Inter

View Details
Company
24 May 2026
Accounts & Tax Executive

PARAS KHURANA AND CO

New Delhi

B.Com

View Details
Company
18 May 2026
MIS Executive

Primarc Pecan Retail Limited

Mumbai

B.Com

View Details
Company
Featured 27 May 2026
Lead Conversion Executive / Sales Closing Executive

SMJ global advisors pvt ltd

New Delhi

B.Com

View Details