How to copy network files using C++

Asked

Viewed 172 times

1

I am trying to copy a file from a server to my machine, simply the code runs, does not return me any error, but does not copy the file.

Follow the code C++:

#include <iostream>
#include <windows.h>

using namespace std;

int main()
{
 CopyFile("\\\\server\\Teste\\arquivo.pdf","\\\\MeuPc\\c$\\arquivo.pdf",true);
}
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.