Joining Files W/o any Software using MSDOS

Status
Not open for further replies.

hmvrulz

Broken In
Thanx to the author who found out this.... Source not know...

wanted to share with u guyz


i thought to share this with u as i found many people dont knw how to join files

one either use hsplit, a freeware
or


go to command prompt

suppose the folder where the files are @ c:\hmv\, then type

cd c:\windows\mamoo


now if the splitted filesnames are x.rar.001 x.rar.002 x.rar.003 and the final filename is to be x.rar, then type


copy /b x.rar.001 + x.rar.002 + x.rar.003 x.rar



the /b means copying binary
dnt 4get the "+" between the parts



Enjoy
 

sre06

Broken In
this also called merging of two files try this codes in c
#include<stdio.h>
void main()
{
FILE *fp1, *fp2, *fp3;
char nm1[20],nm2[20],nm3[20], ch;

printf("\n A prog. for MERGING 2 files in to a 3rd file ...\n\n\n");
printf("\nEnter the 1st source file name: ");
gets(nm1);
if((fp1=fopen(nm1,"r")) == NULL)
{
printf("\nUnable to open the file '%s' for reading ....", nm1);
getch();
exit();
}
printf("\nEnter the 2nd source file name: ");
gets(nm2);
if((fp2=fopen(nm2,"r")) == NULL)
{
printf("\nUnable to open the file '%s' for reading ....", nm2);
getch();
fclose(fp1);
exit();
}

printf("\nEnter the merged file name: ");
gets(nm3);
if((fp3=fopen(nm3,"a")) == NULL)
{
printf("\nUnable to open the file '%s' for reading ....", nm3);
getch();
fclose(fp1);
fclose(fp2);
exit();
}
while((ch=getc(fp1))!=EOF)
putc(ch,fp3);
fclose(fp1);
while((ch=getc(fp2))!=EOF)
putc(ch,fp3);
fclose(fp2);
fclose(fp3);
getch();
}
 
Status
Not open for further replies.
Top Bottom