【发布时间】:2016-05-27 09:26:49
【问题描述】:
我想获取桌面dir文件夹,所以我尝试了:
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% 不工作。如何获取用户配置文件路径?
【问题讨论】:
-
我认为这个链接可以阻止你..stackoverflow.com/questions/17933917/…
标签: c