c++ 获取最后一次文件编辑时间
CFileFind finder;
CString strPath="c:\\aaaa.txt";
BOOL bWorking = finder.FindFile(strPath);
if (bWorking)
{
ATL::CTime time;
finder.FindNextFile();
if(finder.GetLastWriteTime(time))
{
MessageBox("传输失败!"+time.Format("%Y-%m-%d-%H-%M-%S"));
}
CString strPath="c:\\aaaa.txt";
BOOL bWorking = finder.FindFile(strPath);
if (bWorking)
{
ATL::CTime time;
finder.FindNextFile();
if(finder.GetLastWriteTime(time))
{
MessageBox("传输失败!"+time.Format("%Y-%m-%d-%H-%M-%S"));
}