How to copy network files using C ++

1

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);
}
    
asked by anonymous 20.03.2017 / 12:12

0 answers