Created
July 19, 2017 17:08
-
-
Save sorja/3b6daf23e5b3d8a16673d0ac6d514806 to your computer and use it in GitHub Desktop.
Merge a rar file inside of an JP*G file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
color 0c | |
cd C:\ | |
if exist FUSION goto FUSIONTRUE | |
mkdir C:\FUSION | |
:FUSIONTRUE | |
cd C:\FUSION | |
cls | |
echo. | |
echo. | |
echo PUT 2 FILES TO BE FUSED IN "C:\FUSION" | |
pause | |
cls | |
if exist *.rar goto RAR | |
cls | |
echo ERROR: RAR NOT FOUND | |
pause | |
exit | |
:RAR | |
if exist *.jp*g goto JPG | |
if exist *.png goto PNG | |
cls | |
echo ERROR: IMAGE NOT FOUND | |
pause | |
exit | |
:JPG | |
copy /b *.jpg + *.rar FUSED.jpg | |
cls | |
echo JPG/RAR FUSION COMPLETE | |
pause | |
exit | |
:PNG | |
copy /b *.png + *.rar FUSED.png | |
cls | |
echo PNG/RAR FUSION COMPLETE | |
pause | |
exit |
Lots of orchestration but but boils down to copy A + B C
Turns out copy a + b c
is equivalent to cat a b > c
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found somewhere in the internet, the original source can't be found anymore.