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"));
              }

             

posted on 2008-03-21 09:53  gwazy  阅读(709)  评论(0编辑  收藏  举报

导航