Hi,

I am trying to copy a file from the network path to my machine.
I have written below piece of code. This is not working... Please help me.

Code:
#include <windows.h>
#include <string>

using namespace std;

int main()
{

string SourceFile = "\\network.aaa.xxxxx.com\\project\\Support\\Packet Logbook\\Packet.xls";
string TargetFile = "D:\\Macro_Work\\Process\\";
CopyFile((LPCWSTR)SourceFile.c_str(), (LPCWSTR)TargetFile.c_str(),true);
return 0; 

}