得到文件名
1 string fileName = ofd.SafeFileName;
得到路径
1 string filePath = System.IO.Path.GetDirectoryName(ofd.FileName);
得到文件名
1 string fileName = ofd.SafeFileName;
得到路径
1 string filePath = System.IO.Path.GetDirectoryName(ofd.FileName);
转载于:https://www.cnblogs.com/wangzianan/p/4109936.html