2020年7月2日

C#根据文件路径获取文件名称

摘要: string filePath = @"D:\Data\T01.jpg"; Path.GetFullPath(filePath);//=> D:\Data\T01.jpgPath.GetDirectoryName(filePath));//=> D:\DataPath.GetFileName(fil 阅读全文

posted @ 2020-07-02 21:18 嘟嘟他爸 阅读(484) 评论(0) 推荐(0) 编辑

导航