A lot of cell phone broadcasts! Music video file merge Software Tools

Source: Internet
Author: User

After using the mobile phone to play the video, several extensions are formed under the p2pcache directory! For files of 10 MB ending with music videos, you can use the copy/B command of DOS to merge them. However, there are sequential problems during the Merge (It has been verified that it is not a simple sort by dictionary.For this purpose, write the following vc6.0Program(The same for later versions of VC), you only needRun the executable EXE in a p2pcache folder.(Source program and exe download in http://download.csdn.net/detail/dijkstar/4590633 ). The idea of the program is quite simple, and it is all in the annotations (only valid for rmvb files, other formats have not been tested ):

Void cmergedlg: onbutton1 () {// todo: add your control notification handler code hereint I = 0; cstring strfile; cfile file; cstring strsum; cfilefind finder; bool bworking = finder. findfile ("*.! Mv "); If (bworking) {/// used for searching .! The string section (that is, the file name) before the music video // finder. findnextfile (); cstring strtmp = finder. getfilename (); int start = strtmp. find ("rmvb _"); cstring strtmp2 = strtmp. left (start); cstring strtmp3 = strtmp2 + "rmvb _"; // start from subscript _ 0 .! MV file, // while (1) {strfile. Format ("% S % d .! Mv ", strtmp3, I); If (: getfileattributes (lpctstr) strfile) =-1) {break;} strsum + = strfile; strsum + =" + "; I ++;} // remove the last "+" from if (strsum. getlength ()-1 = strsum. reversefind ('+') {strsum. trimright ("+");} // form the doscommand parameter "copy/B 1.x+ 2.x+ 3.x+ ....... + N. X target file "// cstring STR =" copy/B "; STR + = strsum; STR + =" "; STR + = strtmp2; STR + =" rmvb "; //// execute the Copy command // System (STR);} else {afxmessagebox ("not found *.! MV file ");}}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.