7 Steps to Lock a Folder (Plus a BONUS)

July 20, 2015 | Views: 6437

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

7 Steps to Locking a Folder (Plus a BONUS)

1.Open Notepad. Copy and paste the code below:

cls

@ECHO OFF

title hacking

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%== coolhacks 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

 

2.Save the Notepad file as lock.bat (.bat extension is a must).

3. Double-click the lock.bat file and a folder called “MyFolder” will be created.

4. Copy the data you wish to secure into “MyFolder”.

5. Double-click the lock.bat file again and when the tcommand prompt appears, type “Y” and press Enter.

6. “MyFolder” will remain hidden from view and to access it, double-click lock.bat file.

7. You’ll be prompted for a password. The default password is coolhacks. To change the password replace coolhacks with new password in the above code.

 

BONUS: More Folder Security

You may be thinking that anyone could access the password by opening that lock.bat file in Notepad or any other text editor. To make this folder more secure, hide the lock.bat file in a highly secure location after following the above tutorial.

Then, to access the secured file double click on the lock.bat file. Consider copying the lock.bat file into a Pendrive and then copying it onto your computer whenever you need access to your protected files.

Share with Friends
FacebookTwitterLinkedInEmail
Use Cybytes and
Tip the Author!
Join
Share with Friends
FacebookTwitterLinkedInEmail
Ready to share your knowledge and expertise?
33 Comments
  1. This .bat file does nothing and is a totally worthless security control.

    To bypass this, the only thing required is to open the .bat and replace the password.

    Sure, this might deter the most rudimentary of threats (like your 10 year old cousin opening your files) but simply putting the files in a obscure directory does that, too.

    Why not use 7zip to zip your files into a .7z encrypted with AES256 and a lengthy passphrase you’ve chosen? Would be about 6,000% more effective than this.

  2. Not for win8

  3. this is not working for me can you help me??

  4. fair enough. keep it up.

  5. this is not working in my window 8

Page 1 of 512345»
Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge

 

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel