title

DONEMZZY.BLOGSPOT.COM

Welcome to the World Developing Technologies

Friday, July 24, 2015

How to password Protect any folder without software or Application

As the Title says, it is possible to protect your folder from unwanted guest without any software or application.
Lock-Folder
Lock-Folder

Just Open NOTEPAD by holding down the windows button and pressing "r" without quotes

Just type or copy the following codes into notepad or any text editor.

cls
@ECHO OFF
title donemzzy.blogspot.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
: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
ren MyFolder "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%== donemzzy goto 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
md MyFolder
echo MyFolder created successfully
goto End
:End


Save your file as Lock.bat (.bat is important)
Default password is donemzzy.
You can change the default password "donemzzy" in red to anything you want it

No comments:

Post a Comment

We like to hear your comments.