Introduction: How to Put a Password on Any USB Flashdrive
The following steps is a great way to put a password on any USB flashdrive. The following is a .bat file and fairly simple to make. [Only works on windows]
I am not responsible for any lost and corrupted files. I highly suggest you back up your files before continuing. USE WITH CAUTION
Step 1: Move Your Folders
First, plug in you drive, and go to your flash drive folder. Then create a folder. Lets name this folder "Lock." Now move all your flash drive folders into "Lock" Make sure "Lock" is still on the flash drive.
Step 2: Hide Your Folder
First open CMD (if you don't know what this is and want to learn check out my instructable on it) type in "g:" then hit enter and type "attrib Lock +s +h" (if you have a different folder name instead of "Lock" use the name of your folder) this should now make you folder "disappear" The folder is now invisible. Although still accessible, it cannot be seen unless the specfic folder path is seen.
Step 3: Actual Batch Coding
Open notepad and paste the following script:
title Orange Shadow's Folder Lock set pass= passwordlock
set /p ui= if %ui%==%pass% (goto open)
echo Wrong Password pause
exit :open start Yo
There are two variables here: pass, and where it says "set pass=passwordlock" change passwordlock to what you want your password to be.
Next, "open start Yo" change to the name of what your new folder's name is.
save this script as a .bat file (again, if you want to learn more about bat files you can check out my instructable) in the folder you wish to
Step 4: Voila
Now, whenever you attempt to access the folder on the drive, you'll have to go through a secure password first.
Step 5: Turning Into an .exe
The thing about having a .bat file is that you can easily edit the coding, making it accesbile to anyone. really Making this entire project more of a novelty than anything else.
However, There is a solution. Turning the .bat in a .exe (executable program).
To do this click this link here and download the program (or use any other .bat to .exe converter you wish). Follow the procedures, and you should be set.