getfiletime //得到文件创建,最后一次访问、修改的时间

解决方案 »

  1.   

    GetFileAttributes(    LPCTSTR lpFileName  // address of the name of a file or directory  
       );或则用于(NT)
    BOOL GetFileAttributesEx(    LPCTSTR lpFileName,  // pointer to string that specifies a file or directory  
        GET_FILEEX_INFO_LEVELS fInfoLevelId,  // value that specifies the type of attribute information to obtain 
        LPVOID lpFileInformation  // pointer to buffer to receive attribute information 
       );
      

  2.   

    有api函数,是什么你查一下吧
      

  3.   

    var
      vSearchRec: TSearchRec;
    begin
      FindFirst('C:\temp.txt', faAnyFile, vSearchRec);
      ShowMessage(DateTimeToStr(FileDateToDateTime(vSearchRec.Time)));
      ShowMessage(IntToStr(vSearchRec.Size));
      FindClose(vSearchRec);
    end;