string directory = Path.GetDirectoryName(localFilePath); //文件所在路徑 C:\Users\yhood\Desktop string filename = Path.GetFileNameWithoutExtension(localFilePath); //文件名 林業局考勤06 string extension = Path.GetExtension(localFilePath); //文件后綴 帶點(.) .xlsx
網站無須三方授權 · 安全穩定、維護方便