Linker IT Software
Google
Web www.oraxcel.com
menubar-top-links menubar-top-rechts
Home Help Search Login
Welcome, Guest. Please Login.
SQL*XL: Database to Excel bridge litLIB: Excel power functions pack ExcelLock: Locking and securing your valuable Excel spreadsheets encOffice: Protect your Excel file easy and safe encOffice: Protect your Excel file easy and safe
Pages: 1
MSDOS - append files (Read 6354 times)
Gerrit-Jan Linker
YaBB Administrator
*****




Posts: 75
MSDOS - append files
09.08.07 at 19:11:43
 
MSDOS - append files
 
If you have a set of files that you want to add to eachother so you end up with one large file you can use a few simple MSDOS commands to achieve your goal:
 
First make an empty file where all the other files will be copy into
C:> copy con target.abc
^Z

 
An empty file called target.abc is created.  
Now I use the MSDOS for loop to find all .abc files and append them to my target.abc file. Note I use the /b switch in the copy command to denote a binary copy. The copy a+b indicate that the contents of file b must be appended to file a
C:> for %i in (*.abc) do copy /b target.abc + "%i"
 
That's it!
Back to top
 
« Last Edit: 09.08.07 at 19:22:26 by Gerrit-Jan Linker »  

Gerrit-Jan Linker
Linker IT Software
Email WWW Gerrit-Jan Linker   IP Logged
Gerrit-Jan Linker
YaBB Administrator
*****




Posts: 75
Re: MSDOS - append files
Reply #1 - 25.08.07 at 15:41:36
 
Join mp3 files
 
Today I used the above described technique in MSDOS to join together a series of MP3 files. It works fantastically.  
 
Step 1: Make an empty new mp3 file called a.mp3:
c:> copy con a.mp3
c:> ^Z
 
Step 2: Join all mp3 files together to a.mp3:
for %i in (*.mp3) do copy /b a.mp3 + "%i"
 
The resulting a.mp3 plays back fine in my mediaplayer. I also tried windows media player. The total time is correct too!
Back to top
 
 

Gerrit-Jan Linker
Linker IT Software
Email WWW Gerrit-Jan Linker   IP Logged
Pages: 1