How to make flash drive that copy's users files silently and automatically by bigdaddyclint
DSC00060.JPG
****** THIS INSTRUCTABLE IS FOR INFORMATION PURPOSES ONLY IT IS ILEGAL TO COPY SOMEONES FILES WITHOUT THEIR PERMISSION I AM NOT RESPONSABLE FOR ANY THING THAT MAY OR MAYNOT HAPPEN IF THIS INFORMATION IS USED IMPROPERLY****************

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.

 
Remove these adsRemove these ads by Signing Up

Step 1: Materials needed

DSC00060.JPG
Let me first say this is my first instructable... so be nice. Any help in making it better would be nice.

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.
1-40 of 280Next »
imathew1 says: May 8, 2013. 11:49 AM
TO ALL WHO COULD USE AUTORUN ON WIN7
well.. im srry 2 say but microsoft has disabled the autorun ability for usb in windows 7..as precaution since most malware come from usb. Soo if u wanna make it work its gotta be on windows 2000, xp, or vista(who uses 2000 anymore???)..and frankly there's nuthin u can do 2 change the autorun ability so you'll have to click on the launch.bat file if u wanna make this work..
elia1 says: May 6, 2013. 4:40 AM
hi,it works well,thank you.but there's a problem that it's not invisible when i click on the launch.bat a black window opens and begin to list all the files that i want to copy;

HOW TO MAKE IT COPY THOSE FILES WITHOUT THAT BLACK WINDOW OPENS???
can u plz help??
Otaku Hacker says: May 2, 2013. 5:28 AM
good tutorial, now i have 1 question...
how to stop/cancel copy ?
vincenthor says: Apr 16, 2013. 8:55 AM
how about automatically copying all files from any USB plugged to the computer into the hard drive?
minijc says: Jan 31, 2013. 2:02 PM
how would you coppy the documents folder please paste the code in the reponse.
iute1 says: Jan 13, 2013. 3:22 PM
hi and thnx
i do as u told and it work properly except that i have to click on launch.bat file to start copy. what is the problem and what should i do?
Thanks again
mnbpoi6 says: Jul 20, 2012. 4:15 AM
This autorun will be captured and deleted by pretty much any AV that is installed. Also, autorun from USB does not work at all on Windows 7.

This will still work by running the Launch.bat directly, but a silent autorunner is no longer possible on most PCs (for obvious reasons...like this one)
selvol says: Jun 29, 2012. 2:29 PM
How ever late I may be.

It works....
tzq33tdq says: Jun 17, 2012. 1:11 AM
does their computer need to be on/logged in?
shan0 says: Apr 28, 2012. 7:01 AM
hello
its really great subject but i just want to ask if want to copy the jpg files
but from the whole hard drive
not only form the C drive
i mean form the drive D,E,F..... etc
what should i write
and thanks alot
jbouffard says: Apr 12, 2012. 2:30 PM
any way to make to see it when i press (for example) the "c" key?
thanks in advance
jj.inc says: Mar 15, 2012. 9:11 PM
Doesn't work in windows 7, only Vista and XP, windows removed the autorun from flashdrives for security reasons.
amlis says: Mar 14, 2012. 7:24 PM
i tryed your program but it wouldn't automatically come up
minijc says: Feb 10, 2012. 11:11 AM
can somebody just put the code in that you need
Jedi_Master_Revan says: Mar 27, 2009. 4:02 PM
Really cool idea, but your DOSing needs some work. Like, a lot off work.
":: variables" ?
"/min" '/min' is not recognized as an internal or external command, operable program or batch file.
"SET odrive=%odrive:~0,2%" I'm sure this has a use, but I can't figure out what it is.
And lastly, you only need "@Echo off" at the beginning of the batch.

Still a really cool idea though :)
-Revan
Jaware says: Jan 14, 2012. 8:02 PM
Actually, you need some DOSing work if you don't get this. it took me a couple of hours to find out what it does. first, the ::variables is just a comment, they are not run, it just lets you know what it is while editing. the /min, was most likely used to run something minimized. and almost the last but not least, the SET odrive=%odrive:~0,2% has a very important use.

copied from cmd help itself states:
----------------------------------------------------------------------------------------------------
%PATH:~10,5%

would expand the PATH environment variable, and then use only the 5
characters that begin at the 11th (offset 10) character of the expanded
result. If the length is not specified, then it defaults to the
remainder of the variable value. If either number (offset or length) is
negative, then the number used is the length of the environment variable
value added to the offset or length specified.

%PATH:~-10%

would extract the last 10 characters of the PATH variable.

%PATH:~0,-2%

would extract all but the last 2 characters of the PATH variable.
-----------------------------------------------------------------------------------------------------
so what it is saying is............, sets the variable odrive to %odrive:~0,2%
now, %odrive:~0,2% states that the variable odrive gets expanded, and only the first 2 characters that begin at the 1st would be set to the variable odrive.
which in turn would be the drive and the colon.

such as
C:
F:
D:
and so on and so forth.

and finally, the @echo off just keeps cmd from telling you where it was started from. which is usefull if you see it happening. but thanks to the invisible.vbs, it doesn't get viewed since its a process.
The Expert Noob says: Dec 7, 2011. 11:06 PM
Anyway to search for a specific Volume label and set %drive% to that drive letter?
The Expert Noob says: Dec 8, 2011. 2:38 PM
answered my own question. The code below is what I have.

http://pastebin.com/raw.php?i=inTFTzE9

works great with this:

http://portableapps.com/node/3338

use bat to exe found here:

http://www.f2ko.de/programs.php?lang=en&pid=b2e

to convert the batch file to an exe file. You can even include your own icon and set it to run silently. place the generated .exe and the ini file for u3-autorun and profit in education!
Ninesecondframe says: Jul 11, 2011. 5:07 PM
Hi, I'm kind of new to this but so far I'm making it work. Currently I'm running Windows OS 7, and having some difficulty getting the auto run file to boot as soon the the flash drive is inserted. After some research of my own I found out that windows 7 is not compatible with auto run file on a flash drive, any suggestions would be helpful as to an alternative.

I have been able to get this to work just by going into the flash drive once its inserted and double clicking on the File.bat.

Also, If anyone could help me out with an install script for a separate program to be run simotaneously from this one on the same flash drive. Thanks a ton.
The Expert Noob says: Dec 8, 2011. 10:38 AM
at the beginning of your Batch file try

start myaltprogram.exe

This should open a second cmd window and run the program simultaneously.
nazirahmad says: Nov 25, 2011. 8:26 AM
hi: i did the steps but its not working ? some one help me!
Jacob Horton says: Apr 16, 2009. 8:59 PM
Hey, I'm just wondering, what are you using, vista, mac, or windows
arabha says: Jun 2, 2011. 5:44 AM
Windows7
Super_Nerd says: Feb 15, 2011. 12:55 PM
Dude, Vista is Windows.
fwjs28 says: May 26, 2009. 12:21 PM
serisouly get your OS's straight....
gotmountains says: May 17, 2009. 8:10 PM
Well, Vista is a version of Windows. It looks to me, from his screenshots, that he is using Vista or 7. DEFINITELY not Mac, as is obvious from the .vbs file, the .exe files, the .bat file, and the .inf file. Macs don't use those kinds of files. Also, the buttons on the windows are on the left on Macs, on the right on Windows. In his screenshots, they're on the right, therefore it's Windows.
sbencherif says: Apr 30, 2011. 6:22 PM
Thats logical
Super_Nerd says: Feb 15, 2011. 12:57 PM
For a vbs scripter and batch maker like me getting a mac is out of the question for what you just said.
erikals says: Aug 15, 2009. 10:56 PM
you can get a program called leftsider to swap the buttons around
MediocreNinja says: Jul 31, 2010. 12:13 PM
Yes, but I don't think a soldier in Iraq would really care
animan1 says: Jun 4, 2009. 3:32 AM
VISTA
redbeardedone says: Mar 21, 2011. 6:23 PM
Why does it run so slow??? Used it on a HP 6500 with a Sandisk Cruzer 8G... Also I converted the .bat file to .exe Would that make a difference maybe?
cooltg says: Mar 6, 2011. 10:49 AM
The folder with the system name is made.....BUT NO FILES ARE BEING COPIED........please help out.... it's urgent.. :(
lo3tboyz says: Feb 23, 2011. 10:04 PM
this instructable is totaly awesome!!!! it workzzzzzzzz..thx dude
Mistersalt says: Jan 20, 2011. 3:38 PM
Hey,
Thanks! This sounds great! I can't wait to try this out. But on the down side, I'll need to buy a usb.I already have one, but i like to use that for general purposes, not pranking stuff.

Thanks again, this is such a unique idea!
axeman911 says: Dec 14, 2010. 7:16 PM
srry but really hard to understand
The Droid says: Nov 25, 2010. 5:35 PM
Because you used the "If exist autorun.inf" it will not work for every user that has an autorun already on the drive. By instead overwriting the autorun with "echo blablablabla > %drive%autorun.inf", the user will still have an autorun, but your autorun. Besides, if you check for the file that you've already copied to it (i.e. a virus or something) then the autorun will be the one you want already. You could also have it copy it on the thumb drive for every loop of the program, so that the autorun, if edited or deleted, will always come back, unless the user stops the program process.
avibank911 says: Nov 14, 2010. 10:50 AM
Hey Im so excited to use this! me and my mates were gonna spend days trynna figure out how to do this!! thanks a ton!

Do you think you could make the thumb drive pull a folder that you know only part of its name by adding a wild card ? strictly for example:

%backupcmd% "%USERPROFILE%\music" "%drive%\all\*SATS*

jgustin13 says: Sep 9, 2010. 9:45 PM
this won't work on windows 7 because microsoft tightened alot of security holes
Lord Maul says: Jun 19, 2010. 9:48 PM
How can i root the files?And how did you do the icon?
1-40 of 280Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!