Windows programming without command prompt
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:
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.
system("copy putty.exe C:\\");