如何把一个带路径的文件名转换为单纯的文件名
如c:\a.txt --->   a.txt

解决方案 »

  1.   

    Extracts the name and extension parts of a file name. UnitSysUtilsCategoryfile name utilitiesDelphi syntax:function ExtractFileName(const FileName: string): string;C++ syntax:extern PACKAGE AnsiString __fastcall ExtractFileName(const AnsiString FileName);DescriptionThe resulting string is the rightmost characters of FileName, starting with the first character after the colon or backslash that separates the path information from the name and extension. The resulting string is equal to FileName if FileName contains no drive and directory parts.Note: This function works for multi-byte character systems (MBCS).
      

  2.   

    :(
    同样是2003-06-10 09:36:00 ,而且我的id的字母排序f应该在o前面,为什么是2娄阿:)