I'm trying to copy a file from a server to my machine, simply the code executes, it does not return any errors, but does not copy the file.
Follow the C ++ code:
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
CopyFile("\\server\Teste\arquivo.pdf","\\MeuPc\c$\arquivo.pdf",true);
}