I need to create a simple program to copy a program in the current directory, then execute it. So far, it works, I was hoping to have this run on Vista and XP, here is my code:

Code:
int main()
{
    system("copy putty.exe C:\\");
    system("C:\\putty.exe");
    system("exit");
    return 0;
}
But, the problem is command prompt keeps poping up when the copying and program executes. How can I stop command prompt from even being shown? I am not sure if this is a C problem, but I am wondering if anyone can help.
Thanks.
-ARCKEDA