MoveFile() help
Im am attempting to create proggram that can install files from C:\ to their needed locations in combat arms folder. It compiles with no problem but
so far i have only been able to create the folder, it woln't copy the file into the new folder.
Here's my code.
Anyone have any ideas why it wolnt copy? I am using Dev-C++.
so far i have only been able to create the folder, it woln't copy the file into the new folder.

Here's my code.
Code:
#include <windows.h>
#include <iostream>
using namespace std;
int main ()
{
CreateDirectory("C:\\test", NULL); //self explanitory
cout<<"attempting to move file..." << endl;
MoveFile("C:\\test.txt" "C:\\test", NULL); //heres the problem
cout<<"Press ENTER to exit..." << endl;
cin.get();
return 0;
}
