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 ");}}