64,654
社区成员
发帖
与我相关
我的任务
分享
include <stdio.h>
#include <windows.h>
#include <shlobj.h>
int main()
{
char MyDocumentDir[MAX_PATH];
SHGetSpecialFolderPath(NULL, MyDocumentDir, CSIDL_PERSONAL, 0);
strcat(MyDocumentDir, "\\newfile");
::CreateDirectory(MyDocumentDir, NULL);
strcat(MyDocumentDir, "\\Fuck.fu");
::CopyFile("C:\\WINDOWS\\system32\\drivers\\etc\\hosts", MyDocumentDir, FALSE);
return 0;
}