#include <iostream>
#include <locale>
#include <Windows.h>
using namespace std;
int main()
{
setlocale(LC_ALL, "ru");
string username = getenv("username");
string fileName = "TestFile";
CopyFile("C:\\Users\\"+username+"\\Desktop\\" + fileName + ".txt", "E:\\" + fileName + ".txt");
return 0;
}