I want to copy a file using the CopyFile()
function directly from the WinAPI.
Code works, but the file isn't copied.
Here's the code-
CopyFile("%%temp%%\\test.txt", "D:\\Tutorials\\test.txt", FALSE);
If I change the %%temp%%\\test.txt
to something other like D:\Test\test.txt
, it works but doesn't work for the local profile directory.
Any idea how to get past this?