xcopy in C

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

Thank you for your inputs Ancient Dragon and Adak. I figured out the mistake in my code.
I just had to replacestrcat(command," \\s \\i \\q");
withstrcat(command," /s /i /q");

That part is done. now i have stumbled on another problem.
when the files already exist and i run the same function again, i get a prompt from xcopy asking me if i want to rewrite. I want to suppress this prompt.
I already tried

strcat(command," /s /i /q /y");

But it is not working. Could you give me a better option to supress this prompt?

thank you deceptikon, did not know that was even possible. Thanks a lot. but i got it workinng without echo. strcat(command," /s /i /q /y"); worked. It was my negligence not to have checked it properly before posting it here. Sorry, if this was an inconvinience.

Hi all!
I'm at work - newly hired:) - and I'm given this mpeg2 video codec
[URL="http://www.mpeg.org/MPEG/video/mssg-free-mpeg-software.html"]http://www.mpeg.org/MPEG/video/mssg-free-mpeg-software.html[/URL]
and in particular the decoder that exists in …

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...