Pages

Friday 20 May 2011

How to hide a folder using Notepad

This is a clever little trick which has been around the web a bit, but probably not everyone has heard of it. Everyone has however, got something to hide on their computer, and bulking different methods together can do a very good job.

Paste the following code into a notepad file. Replace the XXXXXX with your desired password, and then save the file as a .bat

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


Double click and the folder Private will appear, put stuff inside and then hide your folder. You can mess around the code to change what it says and stuff.. Have fun with it!

40 comments:

  1. i didn't even know that you can do something like that! thanks for the info

    ReplyDelete
  2. huh that's really neat :3 thanks for this

    ReplyDelete
  3. waw nice tip i had never heard of that

    ReplyDelete
  4. oh and since i think you asked, im not korean :)

    ReplyDelete
  5. Useful for my "Plans to take over the world" folder

    ReplyDelete
  6. Oh this is nice! I've got a computer no-one but me uses, but would this work with folders and such on a memory stick/external HDD?

    ReplyDelete
  7. Another quite useful guide. Thank you so much.

    ReplyDelete
  8. That's great, I needed a place to put some password info

    ReplyDelete
  9. haha thanks for the tip. ive been meaning to find a secret place for my stash

    ReplyDelete
  10. This is great for my por- er, secret work.

    ReplyDelete
  11. Hmm, never thought about doing it like this. Good idea.

    ReplyDelete
  12. wow that was great! thx for that =P

    ReplyDelete
  13. Very useful! Thank you!

    ReplyDelete
  14. love these tuts dude, real handy info :)

    ReplyDelete
  15. I shall never doubt the mighty of the notepad, ever again.

    ReplyDelete
  16. thank you for the information

    ReplyDelete
  17. Nice post! Check out my new blog.

    ReplyDelete
  18. Thank you, now I don't have to hide all of my self nudes on a thumb drive in a box burried in the garden.

    ReplyDelete
  19. Interesting. I don't need this, but it might be fun on someone elses computer :)

    ReplyDelete
  20. So thats why hide folder was invented

    ReplyDelete
  21. It is helpfull my friend, how can i 'unhide' this later?

    ReplyDelete
  22. this is pretty cool, gonna save this !

    ReplyDelete
  23. @Endless Ha. Ha.

    ReplyDelete
  24. this just actually came in very useful for me!

    ReplyDelete
  25. I like your hacker skills man. :D

    ReplyDelete
  26. @ Rumiko

    I have no idea, I might need to check that out!

    @ Triper

    Just double click on the .bat and type your password in and it just kinda appears!

    ReplyDelete
  27. hehe, i know what most people will be doing with this :P

    ReplyDelete
  28. This brings back memories. I used to use batch files to hide my porn folder back when I was in Jr. High. Good times, good times. My old script did more than hide the folder though, since people can show hidden files and folders. The script I used converted the folder into a pseudo-system file that couldn't be accessed by any usergroup.

    ReplyDelete
  29. that sounds really great. id need someone to install it for me! followed

    ReplyDelete