string directory = Path.GetDirectoryName(localFilePath); //文件所在路径 C:\Users\yhood\Desktop string filename = Path.GetFileNameWithoutExtension(localFilePath); //文件名 林业局考勤06 string extension = Path.GetExtension(localFilePath); //文件后缀 带点(.) .xlsx
网站无须三方授权 · 安全稳定、维护方便