program Project1;
Uses Sysutils;
begin
writeln(GetUserDir);
end.
.... and just append "\Desktop" to it
Note: This goes Kaboom in case of OneDrive (like on my company laptop. My "Desktop" is within OneDrive, so.....)
If it'S OneDrive-Based, you first have to check, if OneDrive is installed (in AppData IIRC), and then build the final Path-String
As a final Sanity-Check use "DirectoryExists" beofre dropping the File on the Desktop
EDIT: AAHA.... Thx Serge.
Didn't know that one.
EDIT2: YAY! Serge's Solution works even with OneDrive-based Folders