Batch File Help

Soldato
Joined
7 Feb 2004
Posts
8,215
Location
North East
http://forum.digital-digest.com/showthread.php?t=1996

I am surprised that the very simple and easy way of joining MPEG fies by doing a binary copy command is not mentioned anywhere in the site. I've been doing this method for years with no problem. I simply open a DOS box (command prompt) or create a batch file and run any of the below commands:

copy /b file(1).mpg+file(2).mpg+file(n).mpg file-total.mpg

copy /b file??.mpg file-total.mpg [place more ? as appropriate]

copy /b copy /b *.mpg file-total.mpg [copies all into one file]

I managed to make a file, but it was only the first mpg, and was invalid :p

Can anyone post the txt info, so i can make it work lol...

i want to join 1.mpg and 2.mpg to make output.mpg
 
works for me...?

-------------------------------
C:\>copy /b 1.mpg+2.mpg 3.mpg
1.mpg
2.mpg
1 file(s) copied.

C:\>
-------------------------------

them just play 3.mp3



...btw
'tis nice to still see people doing stuff the old school way,
instead of downloading yet another whizz-bang program that does it all
:)

.
 
Last edited:
:o ... just read the post, says ANY OF ... i tried em all lol :o

nm, could have worked it out if i read properly :(

Thanks anyway btslice ;)

it doesnt work properly :s

puts the start of one, and the end of the other together, and the length is EXACTLy that of the 2nd file :s

Any idea how to use the last comamnd (cant work that one out :s )
 
Last edited:
try it with some simple Microsoft .mpg's first

I reran with your file names and it still worked
-------------------------------
C:\>copy /b 1.mpg+2.mpg output.mpg
1.mpg
2.mpg
1 file(s) copied.

C:\>output.mpg

(...plays file)

C:\>dir *.mpg
27/05/2005 10:21 338,564 1.mpg
27/05/2005 10:21 775,762 2.mpg
28/09/2006 12:18 1,114,326 output.mpg
------------------------------

edit: have found one .mpg where it doesn't work....
maybe not all .mpg have the same format ?


.
 
Last edited:
Back
Top Bottom