Recommended Posts

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 comment
https://www.neowin.net/forum/topic/576805-folder-locking-without-software/
Share on other sites

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.

  • 3 weeks later...
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
  • 1 month later...
  • 2 weeks later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.