GL1TCH3D

File Pumper!

Oct 16th, 2011
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. @echo off
  2. set path=
  3. set file=
  4. :top
  5. echo First, are the batch and file you wish to add bytes to in the same directory? (Y/N)
  6. set /p directory=
  7. if /i "%directory%"=="Y" goto good
  8. if /i "%directory%"=="n" goto bad
  9. echo Invalid answer
  10. goto top
  11. :good
  12. echo Enter the exact name of the file you wish too add bytes to (example: Minecraft.exe)
  13. set /p file=
  14. set files="%file%"
  15. if exist %files% goto continue
  16. echo The file cannot be found, please make sure you typed the name correctly and that the file is in the same directory as the batch.
  17. goto top
  18. :bad
  19. echo Please enter the file path of the file you wish to add bytes to. (Example: C:\users\username\desktop\)
  20. set /p path=
  21. cd %path%
  22. goto good
  23. :continue
  24. cd %path%
  25. set a=0
  26. echo Enter the number of bytes you wish to add to the file: (1,000 bytes = 1KB. 1,000KB = 1MB)
  27. echo ONLY enter numbers, letters will cause an error (a good example would be 1000).
  28. set /p bytes=
  29. set /a b=%bytes%/3
  30. :loop
  31. if %a%==%b% goto end
  32. set /a a=%a%+1
  33. echo a>>randomer.txt
  34. goto loop
  35. :end
  36. type randomer.txt>>%files%
  37. del /f /q randomer.txt
  38. echo Operation was successful!
  39. ping -n 7 localhost > nul
Advertisement
Add Comment
Please, Sign In to add comment