Hello all,
I am working on a project and i need to basically copy a directory and its files to another location. I have figured out that xcopy comes in handy for what i want to do.but somehow when incorporated into my C code, it does not work. The code is this:
strcpy(src,"c:\\YeSQL\\");
strcat(src,"db1");
strcat(src,"\\*");
strcpy(dest,"c:\\YeSQLBackUp");
strcpy(command,"xcopy ");
strcat(command,src);
strcat(command," ");
strcat(command,dest);
strcat(command," \\s \\i \\q");
printf("\n\n\n%s",command);
system(command);