Advertisement
Guest User

Untitled

a guest
Sep 29th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. cd C:\
  3. color 0c
  4. if exist FUSION goto FUSIONTRUE
  5. mkdir C:\FUSION
  6. :FUSIONTRUE
  7. cd C:\FUSION
  8. cls
  9. echo STiX’s JPG/PNG + (RAR, ZIP, 7z) Fusion script, Edited by Shinmaru.
  10. echo.
  11. echo.
  12. echo Put 2 files(one a picture(.jpg or .png) and the other a compressed Archive file(7z, RAR or ZIP)) in the Fusion folder.
  13. pause
  14. cls
  15. if exist *.rar goto RAR
  16. if exist *.7z goto 7z
  17. if exist *.zip goto ZIP
  18. cls
  19. echo ERROR: NO COMPRESSED ARCHIVE FOUND.
  20. pause
  21. exit
  22.  
  23. :RAR
  24. if exist *.jpg goto JPG-RAR
  25. if exist *.png goto PNG-RAR
  26. cls
  27. echo ERROR: IMAGE NOT FOUND
  28. pause
  29. exit
  30. :JPG-RAR
  31. copy /b *.jpg + *.rar FUSED.jpg
  32. cls
  33. echo JPG/RAR FUSION COMPLETE
  34. pause
  35. exit
  36. :PNG-RAR
  37. copy /b *.png + *.rar FUSED.png
  38. cls
  39. echo PNG/RAR FUSION COMPLETE
  40. pause
  41. exit
  42.  
  43. :7z
  44. if exist *.jpg goto JPG-7z
  45. if exist *.png goto PNG-7z
  46. cls
  47. echo ERROR: IMAGE NOT FOUND
  48. pause
  49. exit
  50. :JPG-7z
  51. copy /b *.jpg + *.7z FUSED.jpg
  52. cls
  53. echo JPG/7z FUSION COMPLETE
  54. goto RENAME-JPG
  55. :PNG-7z
  56. copy /b *.png + *.7z FUSED.png
  57. cls
  58. echo PNG/7z FUSION COMPLETE
  59. goto RENAME-PNG
  60.  
  61. :ZIP
  62. if exist *.jpg goto JPG-ZIP
  63. if exist *.png goto PNG-ZIP
  64. cls
  65. echo ERROR: IMAGE NOT FOUND
  66. pause
  67. exit
  68. :JPG-ZIP
  69. copy /b *.jpg + *.zip FUSED.jpg
  70. cls
  71. echo JPG/ZIP FUSION COMPLETE
  72. goto RENAME-JPG
  73. :PNG-ZIP
  74. copy /b *.png + *.zip FUSED.png
  75. cls
  76. echo PNG/ZIP FUSION COMPLETE
  77. goto RENAME-PNG
  78.  
  79. :RENAME-PNG
  80. echo Name the file...
  81. set name
  82. ren C:\FUSION\FUSED.png %name%.png
  83. pause
  84. exit
  85.  
  86. :RENAME-JPG
  87. echo Name the file...
  88. name=choice text
  89. ren C:\FUSION\FUSED.jpg %name%.jpg
  90. pause
  91. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement