Script Request - File-merging Tool.
Posted: 14 Aug 2013 11:41
Can someone please build a file merging tool.
I have a folder that has a single JPG file and many files RAR - 01.rar, 02.rar, 03.rar... I need to each file RAR join JPG file using the bat file:
The possible sequence of steps:
-> select a jpg file and the first RAR\ run bat (<xypath>\Data\Scripts\cbr.bat)\ pause for join files\ update the list of files\ choose the first RAR\ delete\ update the list of files = we get 01.cdr.
Then move on to the next pair of files:
-> select a jpg file and the first RAR\ run bat (<xypath>\Data\Scripts\cbr.bat)\ pause...
I do not know much about scripts, is it possible?
Thanks!
I have a folder that has a single JPG file and many files RAR - 01.rar, 02.rar, 03.rar... I need to each file RAR join JPG file using the bat file:
Code: Select all
@echo off
if /I %~x1==%~x2 exit
if /I %~x1 NEQ .jpg (if /I %~x2 NEQ .jpg exit)
if /I %~x1 NEQ .rar (if /I %~x2 NEQ .rar exit)
if /I %~x1==.jpg (
copy /b %1+ %2 "%~d1%~p1%~n1.cbr"
) else (
copy /b %2+%1 "%~d2%~p2%~n2.cbr")-> select a jpg file and the first RAR\ run bat (<xypath>\Data\Scripts\cbr.bat)\ pause for join files\ update the list of files\ choose the first RAR\ delete\ update the list of files = we get 01.cdr.
Then move on to the next pair of files:
-> select a jpg file and the first RAR\ run bat (<xypath>\Data\Scripts\cbr.bat)\ pause...
I do not know much about scripts, is it possible?
Thanks!