ive been trying to get my program to work all day parameter 3 on CopyFile is the problem i think
Code:#include <iostream> #include <windows.h> #include <cstring> using namespace std; int main() { for(int i=0;i<2;i++) { char buffer[50]; itoa(i,buffer,10); strcat(buffer,".exe"); CopyFile("Install1.exe",buffer,0); } }