Folder Locking Without Software


 Share

Recommended Posts

Hani

Open Notepad or any other text editor. Copy the code below and save as locker.bat. Don't forget to change the password (the field in red). Open locker.bat, it will create a folder called Private. Put the files that you need to hide in this folder. Run locker.bat again, and confirm. When you want to access the folder, just ran locker.bat and enter the password. Run it again to hide it.

cls

@ECHO OFF

title Folder Private

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

if NOT EXIST Private goto MDLOCKER

:CONFIRM

echo Are you sure you 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 Private "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%== password here goto FAIL

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

ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private

echo Folder Unlocked successfully

goto End

:FAIL

echo Invalid password

goto end

:MDLOCKER

md Private

echo Private created successfully

goto End

:End

Regards

Link to post
Share on other sites

myrhymeandreason

I like it. I will try this one out.

Link to post
Share on other sites

nXqd

Very nice :)

But I think there's problem that anyone can get password from locker.bat viewed by Notepad.

nXqd

Edited by Nxqd3051990
Link to post
Share on other sites

AimLXJ
Very nice :)

But I think there's problem that anyone can get password from locker.bat viewed by Notepad.

nXqd

Lmao, there goes the privacy.

Link to post
Share on other sites

Creamy

Yeah...but its enough to hide stuff for your little sister! ;)

Link to post
Share on other sites

zhangm

Keep the batch file on a thumbdrive or something. Copy it onto the computer to unlock, and then shred it.

If you're serious about security, use an encryption program. If you need to hide things from average Joe Hacker, look into steganography. If you want to hide things from CIA/NSA, keep a can of thermite and a short fuse on top of your computer case.

Link to post
Share on other sites

nizsmo

Thanks for this! Very useful!

Link to post
Share on other sites

  • 3 weeks later...
shadow_dweller

Very good. Thanks for this !

Link to post
Share on other sites

myrhymeandreason
If you're serious about security, use an encryption program.

Folder Locking Without Software :)

Link to post
Share on other sites

ISV

very good! THX

A question I want to know is what happen if I delete or move the file locker.bat after I hided the folder "private"??

Can I access the private again??

Link to post
Share on other sites

Hani

it won't work, you have to keep it in the same place

Link to post
Share on other sites

Victor V.

Also, if I'm not wrong, anyone with administrator privileges may use attrib to get a folder back, that is, if they notice anything missing.

Link to post
Share on other sites

voidpharoh
A question I want to know is what happen if I delete or move the file locker.bat after I hided the folder "private"??

Can I access the private again??

If you have hidden & system files/folders shown in explorer. You can simply rename it (it appears as Control Panel.{...} ) to turn it back into an accessible folder.

Edited by voidpharoh
Link to post
Share on other sites

PictorieN

Tested it in Vista, I can still access the hidden folder that it renamed private too. Encryption seems like a better way to do thing just takes longer.

Link to post
Share on other sites

DerkPY

Very nice, thanks ;)

Link to post
Share on other sites

Lt-DavidW

If you want to encrypt/decrypt stuff without installing anything, just run TrueCrypt from a USB key in 'traveler mode'.

Link to post
Share on other sites

Abhishek kapoor

it;s working ...thax a lot ... but security issue is still there

Link to post
Share on other sites

  • 1 month later...
Nipun Mohta

It justs hide the folder named "Private". I'm using Windows Vista.

Link to post
Share on other sites

  • 2 weeks later...
careless_monkey

awesome thnx a lott!!! :rolleyes:

Link to post
Share on other sites

beautiful.blood

sweet thanx finally learned something new in xp

Link to post
Share on other sites

This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.