You said Windows was successful because of marketing, which is plainly untrue. Windows is successful because it was better than OS/2.
And C is the greatest language ever, unless you're trying to use it as a scripting language, of course. If all you're going to do is system() stuff, you might as well use Python.
Anyway,
C code:
#include <stdio.h>
void filecopy(char *src, char *dest)
{
FILE *fsrc = fopen(src, "r");
FILE *fdest = fopen(dest, "w");
int c;
while ((c = getc(fsrc)) != EOF)
{
putc(c, fdest);
}
fclose(fdest);
fclose(fsrc);
}
You really will find life in C much easier if you use pointers instead of arrays.