16,473
社区成员
发帖
与我相关
我的任务
分享
SHFILEOPSTRUCT shFile ;
ZeroMemory (&shFile ,sizeof (shFile ));
shFile .pFrom = lpFileRoot ;
shFile.pTo = _("你想要的完整路径")
shFile .wFunc = FO_RENAME ;
shFile .fFlags = FOF_SILENT |FOF_NOCONFIRMATION ;
if (SHFileOperation (&shFile ) != 0 )
{
return false ;
}
else
{
return true ;
}
#include <Shlwapi.h>
#pragma comment(lib,"Shlwapi.lib")