can someone please tell me what is wrong with my code
using namespace std;
int main() { system("copy program.exe C:\Documents and Settings\All Users\Start Menu\Programs\Startup\program.exe" ); system("PAUSE"); return EXIT_SUCCESS; }
Thanks it works!!!
int main() { system("copy program.exe \"C:\Documents and Settings\All Users\Start Menu\Programs\Startup\\"" ); system("PAUSE"); return EXIT_SUCCESS; }
Log in to post a comment.
can someone please tell me what is wrong with my code
include <iostream>
using namespace std;
int main()
{
system("copy program.exe C:\Documents and Settings\All Users\Start Menu\Programs\Startup\program.exe" );
system("PAUSE");
return EXIT_SUCCESS;
}
Thanks it works!!!
include <iostream> // try this ...
using namespace std;
int main()
{
system("copy program.exe \"C:\Documents and Settings\All Users\Start Menu\Programs\Startup\\"" );
system("PAUSE");
return EXIT_SUCCESS;
}