//strSrcPath 源文件路径 strDestPath目标路径
BOOL ReNameFile(CString strSrcPath,CString strDestPath)
{
BOOL bRet = FALSE;
if (PathFileExists(strSrcPath))
{
if (_wrename(strSrcPath,strDestPath) == 0)
{
//ok
bRet = TRUE;
}else
{
printf("restor file Fail[%s]->[%s] GLE[%d]",strSrcPath,strDestPath,GetLastError());
}
}
return bRet;
}
01-02
1366
06-04
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交