I want to get the desktop dir folder, so I tried:
char filename[ MAX_PATH ];
char newLocation[]="%userprofile%\\desktop\\myfile.exe";
BOOL stats=0;
DWORD size = GetModuleFileNameA( NULL, filename, MAX_PATH );
CopyFile(filename, newLocation, stats);
%userprofile% is not working. how can I get the user profile path?