How to Create a Password Protected Folder


Do you want to know how to create a password protected folder and conceal it as a VIRUS?

This hack has 5.2 easy steps to follow. Try it out and satisfy the urge to keep your files secured from people who don’t really know how to crack code. 

This works on a USB or an EXTERNAL HARD DRIVE. You can only use this trick when accessing a windows PC.

How to Create a Password Protected Folder using a batch file.


CHOOSE YOUR PREFERRED LOCATION. You can bury this deep into a series of folders, if you wish to REALLY REALLY secure your files. 
USB, EXTERNAL DRIVE, or even your DESKTOP can be used as a location.


Open an untitled NOTEPAD.
Shortcut to run notepad: Hold Windows Button and press the letter “R” on your keyboard then type in: “notepad”

Run notepad


On the UNTITLED NOTPAD, Copy and Paste this code: (FROM cls to :End)

 title RVIRUSV1 
 if EXIST "HTG Locker" goto UNLOCK 
 if NOT EXIST Private goto MDLOCKER 
 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 
 ren Private "HTG Locker" 
 attrib +h +s "HTG Locker" 
 echo Folder locked 
 goto End 
 echo Enter password contaminate current directory with rvirus_v1 
 set/p "pass=>" 
 if NOT %pass%== defaultpassword101 goto FAIL 
 attrib -h -s "HTG Locker" 
 ren "HTG Locker" Private 
 echo Folder Unlocked successfully 
 goto End 
 echo Invalid password 
 goto end 
 md Private 
 echo Private created successfully 
 goto End 


FILENAME: Your preferred “VIRUS” name .bat (For this I named it “rvirus.bat“)
SAVE AS TYPE: Change this to ALL FILES.

how to create password protected folder - save type
Make sure you save type as “All Files” with a file extension “.bat”
how to create password protected folder -
Here’s how the file would look like. You will not see the private folder yet.


Now you have a working batch file (concealed as a virus). Upon clicking the batch file for the first time, it will automatically create a private folder in the location you’ve chosen. Default password: “defaultpassword101”.

What’s next? Change your PASSWORD OR the LOCK/UNLOCK prompts. Here’s how:

step 5.1:

Navigate to the batch file. Right click > EDIT. You need to have administrator access to do this.

step 5.2:

A notepad will appear. You can go ahead and modify the settings.

    = echo Are you sure you want to lock the folder(Y/N)

How to use it?

  1. Click the batch file. (RVIRUS / Whatever you named it)
  2. First time clicking it will automatically create the PRIVATE FOLDER.
  3. Save files on the PRIVATE FOLDER.
  4. If you want to close it click the BATCH FILE again.
  5. A “LOCK/HIDE” prompt will appear. Type “Y” to hide the folder or “N” to cancel.

Here’s an example:

how to create password protected folder - command prompt lock
Lock by clicking the batch file and answering
how to create password protected folder - command prompt unlock
Unlock by clicking the batch file and providing password.

It’s just a matter of locking and unlocking the folder by clicking the batch file.

IF you like this post, please share on facebook. Subscribe here by creating a free account. (sign-in / join).

Previous article7 Tips for Picking Your Corporate HMO
Next article10 random things you need to know about gamers
A lot of people think that I'm an over-complicated person. Random thoughts usually come to mind like planning a new business venture, playing online games, managing websites, writing a novel, all that while being a sales professional and a freelance web developer. Friends even say that I'm like a cat who could not focus on one thing, easily distracted by those shiny gems and laser lights. The truth is that all these experiences are my seeds of life, slowly growing inside me as time goes by. Despite what people say, I'd like to ride this roller-coaster of a life and share my thoughts with everyone. The main reason I created listseed is to publish what I perceive to be the seeds of life. Okay, I think this is long enough.. HAHAHA! Ready to get Random?


  1. Greetings from Carolina! I’m bored to tears at work so I
    decided to browse your blog on my iphone during lunch break.
    I love the info you present here and can’t wait to take a look when I get home.
    I’m shocked at how quick your blog loaded on my phone ..
    I’m not even using WIFI, just 3G .. Anyhow, good site!

  2. Hey! I just wanted to ask if you ever have any trouble with hackers?
    My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no
    back up. Do you have any methods to protect against hackers?

  3. May I simply just say what a relief to uncover someone who really knows what they’re discussing
    on the net. You certainly know how to bring a problem to light and make it important.

    More and more people must read this and understand this side of the story.
    I was surprised you are not more popular since you surely possess the gift.

  4. Wonderful site you have here but I was curious
    about if you knew of any user discussion forums that cover
    the same topics talked about in this article? I’d really love to be a part of community where
    I can get feed-back from other experienced individuals that share the same interest.
    If you have any suggestions, please let me know. Kudos!

  5. Simply desire to say your article is as surprising. The clearness in your post is simply spectacular and i could assume you’re an expert on this subject.

    Well with your permission let me to grab your RSS feed to keep up to date with forthcoming post.

    Thanks a million and please continue the gratifying work.

  6. Usually I don’t learn post on blogs, however I
    wish to say that this write-up very forced me to try and do it!

    Your writing taste has been amazed me. Thanks, quite great post.

  7. Hi, I do believe this is an excellent site.
    I stumbledupon it 😉 I’m going to revisit yet again since i
    have bookmarked it. Money and freedom is the best way
    to change, may you be rich and continue to guide other people.

  8. Very great post. I just stumbled upon your weblog and wished
    to mention that I’ve really loved surfing around your weblog posts.
    After all I will be subscribing on your feed and I am hoping you write again very soon!

  9. Its like you read my mind! You appear to know so much about this, like you wrote the book in it
    or something. I think that you can do with a few pics to drive the message home a little bit, but other than that, this is excellent blog.
    A great read. I will definitely be back.

  10. Wonderful site you have here but I was wanting to know if you knew of
    any forums that cover the same topics discussed in this article?

    I’d really love to be a part of group where I can get suggestions from other experienced individuals that share the
    same interest. If you have any suggestions, please let me know.
    Many thanks!

    • Hi There! Thanks for the kind gesture, I’m using Hostinger for my webhost. Specifically their premium shared hosting. Here’s the link to get started Cheers!


Please enter your comment!
Please enter your name here