获取文件名:用字符串的Substring方法: string filename = filepath.Substring(filepath.LastIndexOf("\") + 1);string filename = 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交