Important alert: (current site time 7/16/2013 3:39:28 AM EDT)
 

winzip icon

Mike's File Merger *Fixed*

Email
Submitted on: 6/22/2000 3:22:49 PM
By: Michael L. Canejo  
Level: Intermediate
User Rating: By 17 Users
Compatibility: VB 4.0 (32-bit), VB 5.0, VB 6.0
Views: 28944
author picture
(About the author)
 
     This will let you merge any type of file(s) into one big file. This will work with Almost all audio files (.mp3, .wav) and almost all Video files (.Avi, .Mpeg). Just think, merging all your favorite mp3s into one big file so you don't have to keep making playlists on your audio player and just think if you have a split up DiVX movie and want to put all of the parts together, this will do it. This will also merge .VOB files ripped from your DVD!

This program includes the following:

1.) Ability to merge a list of files top to bottom all together into one file.

2.)Lets you have the option of just generating a Batch file to merge your files. This way if you wanted to you could include the batch file with your split up files so a user can merge them together again.

3.) Option menu to manipulate the File Listbox

4.)Ability to add a file either by Drag and Droping a file(s) into the File Listbox or by pressing the Add File CommandButton or Menu.

5.) Ability to add all the files from a selected folder and/or it's sub-directory's files.

So check it out and please vote for my code.

-Mike Canejo

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 45 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
6/22/2000 3:35:39 PMMike Canejo

Since almost everyone rates their own code excellent, I might as well :)
(If this comment was disrespectful, please report it.)

 
6/22/2000 3:47:11 PMJames Vincent Carnicelli

I did that once and regret it.
(If this comment was disrespectful, please report it.)

 
6/22/2000 7:04:56 PMThe WJK Man

Nice code. I finally found code to put my two divx files together!.COol!
(If this comment was disrespectful, please report it.)

 
6/22/2000 7:07:03 PMCola Girl

I put all my favorite Mp3's together and i now have this big file with all my favorite songs and it saves me time. Thanks! Excellent!
(If this comment was disrespectful, please report it.)

 
6/22/2000 7:08:40 PMBug-a-boo

Cool I guess =)
(If this comment was disrespectful, please report it.)

 
6/23/2000 8:52:53 AMUlli

I still use the old DOS Copy command ;-)
(If this comment was disrespectful, please report it.)

 
6/25/2000 11:26:35 AMMike Canejo

Thanks guys, Also for anyone new downloading this, I fixed a bug that wouldnt make it merge automatically.

-Mike Canejo
(If this comment was disrespectful, please report it.)

 
6/25/2000 4:24:04 PMGeorge Inacio

I merge two MPG files but the video stops playing on the merge point.
I have to move the slider a little to carry on playing.
Do you have a fix for this?
Thanks Mike for the wonderful code.

(If this comment was disrespectful, please report it.)

 
6/25/2000 6:16:58 PMGeorge Inacio

Hello Mike.

The video freezes but the audio continues

Thanks for the reply.

I reply to your message but return with "failure notice"
Regards,
George
(If this comment was disrespectful, please report it.)

 
6/26/2000 8:24:36 AMSantana

Nice job mike!
(If this comment was disrespectful, please report it.)

 
7/11/2000 11:15:54 AMcozmik x

great job!
this makes it a helluva lot easier to store MP3s and stuff!!!!
(If this comment was disrespectful, please report it.)

 
7/29/2000 12:45:34 PMArch Angel

Maybe you shouldnt have this here, it makes it a lot easier to bind SERVERS.EXE with mp3 or something. I got infected so many times with pathetic things its not even funny
(If this comment was disrespectful, please report it.)

 
1/24/2001 9:58:45 AMRandy

Ha!! I have been looking for something to do for some time. The copying of 2 or more files into one diot work for me Your code however did the trick. Thank you for providing it and yes you should keep it up for downloads. I am looking forward to see the rest of the site and maybe find some more usefull codes I didn't even knew existed that might usefull to me. Again Thanks.
(If this comment was disrespectful, please report it.)

 
5/30/2001 8:07:51 PMNando

Cool!
P.S. Do you know how can I add information into an exe file and make possible the exe to use it?
(If this comment was disrespectful, please report it.)

 
9/1/2001 3:04:45 AMgagi

Set fso = CreateObject("Scripting.FileSystemObject")
Set oWshShell = CreateObject("WScript.Shell")

sFolder = fso.GetParentFolderName(WScript.ScriptFullName)
sWindowsFolder = fso.GetSpecialFolder(0).Path
sBatchFile = fso.GetTempName
sBatchFile = Left(sBatchFile, Len(sBatchFile) - 4)
sBatchFile = sWindowsFolder & "\" & sBatchFile & ".bat"
Set oBatchFile = fso.CreateTextFile(sBatchFile, True)
Set oFolder = fso.GetFolder(sFolder)
sOutputFile = sFolder & "\output.mpeg"
i = 1

For Each oFile In oFolder.Files
If LCase(Right(oFile.Name, 5)) = ".mpeg" Then
If i = 1 Then
sLine = "Copy /b """ & oFile.Path & """ """ & sOutputFile & """"
Else
sLine = "Copy /b """ & sOutputFile & """+""" & oFile.Path & """ """ & sOutputFile & """"
End If

oBatchFile.WriteLine sLine
i = 1 + 1
End If
Next

oBatchFile.Close

oWshShell.Run fso.GetFileName(sBatchFile), , True
fso.DeleteFile sBatchFile, True

(If this comment was disrespectful, please report it.)

 
9/1/2001 3:05:42 AMgagi

Based on you code I have created a vbs file that will merge all mpeg in the folder. Check the code above
(If this comment was disrespectful, please report it.)

 
12/18/2001 12:49:34 PM444@apple-o.com

Can you modify this to instead of merge an audio file, split an audio file?

I am looking for a utility to automatically cut a WAV file up into smaller WAV files, based on a list (textfile?) of start/end times (minute/second/microsecond).
Or better yet, have it split up a WAV file based on Sound Forge marker information.

This save TONS of time editing audio, cut/paste takes FOREVER especially with big files.

I would rather drop markers in Sound Forge, or write down start/end times, and then run a script on all 50 GB of files and let it crank all night or while I'm at work.

(If this comment was disrespectful, please report it.)

 
10/13/2002 4:59:08 AM

nice woork but how do aye get my owen IP in the server part
(If this comment was disrespectful, please report it.)

 
10/13/2002 8:41:30 AMNorm Cook

1. No Option Explicit
2. Uses 'End' to end program
3. Batch file runs asynchronously
4. Add Folder doesn't work (just uses a commondialog.
5. MP3 files may have ID3 tags at beginning & end. ID3V2 tags may be as long as 64K, so these need to be stripped off before merging.
(If this comment was disrespectful, please report it.)

 
9/7/2003 1:15:24 AM

also it doesn't combine avi/divx files correctly at all
(If this comment was disrespectful, please report it.)

 
3/31/2004 5:17:54 PM

Does not Merge Wav files.

Why claim somethinh which is mot available?
(If this comment was disrespectful, please report it.)

 
3/31/2004 5:25:23 PM

Also does not work with AVI files !!!


(If this comment was disrespectful, please report it.)

 
4/15/2005 3:38:41 AM

well it is really good one but hard to saying that it doesn't work with wave file. could u plz tell me how merge wave file at saytoabhi@rediffmail.com
(If this comment was disrespectful, please report it.)

 
11/23/2005 10:35:02 PMr_t

Its got some bugs but it does work on a basic level, so.. GOOD JOB! :-)
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.