1. 获取绝对文件路径
string fileName = \"myfile.ext\";
string path1 = @\"mydir\";
string path2 = @\"\\mydir\";
string fullPath;
fullPath = Path.GetFullPath(path1);
fullPath = Path.GetFullPath(fileName);
fullPath = Path.GetFullPath(path2);
本文地址:https://www.stayed.cn/item/25766
转载请注明出处。
本站部分内容来源于网络,如侵犯到您的权益,请 联系我