How To Lock Folder Without using Any Software
To Lock
Folder Without using Any Software. Follow this simple steps:
1. Just Open Notepad.
You can open Notepad by using Start –> Run –>
type “Notepad” and press Enter
2. Copy & paste below Code into Notepad
cls
@ECHO OFF
if EXIST
"Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST
MyFoldergotoMDMyFolder
: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
renMyFolder
"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 Your Secure Folder
set/p
"pass=>"
if NOT %pass%== onlinecggoto
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 Invalid
password
goto end
:MDMyFolder
mdMyFolder
echoMyFolder
created successfully
goto End
:End
The default password to unlock folder
is“onlinecg”
Your Notepad file will look like above.
3. Save the Notepad file as .Bat (Extension)
Goto File –> Save as
Select “All
files” in Save as option
Give file name: Protect.bat (Extension .Bat is very necessary)
4. Create Secured Folder using .Batfile
Double click on Protect.bat file and it will create
a new folder as shown below.
Copy all your secure data/files inside new created
Folder.
5. Lock Folder
Once all data moved to new Folder, you can protect the folder.
Simply double click on “Protect.bat” file which
will ask you with below type of command prompt.
Enter “Y”and press Enter to Lock your Folder.
Congratulations, now your Folder is hidden &
protected.
Note:Make Sure you have
turned off show hidden files in folder option.
How to Unlock Folder without using any Software
To Unlock your folder is very simple. You simply
need to enter default password when prompted.
The default password to unlock folder is“onlinecg”
Note:To change default
password: simply change onlinecg text from above code
Double click on Protect.bat and it will prompt you
to enter password to unlock your protected folder.