gpt4 book ai didi

.net - 从 .NET 中的路径中删除点

转载 作者:行者123 更新时间:2023-12-02 17:33:54 24 4
gpt4 key购买 nike

如何将 c:\foo\\..\bar 转换为 c:\bar

最佳答案

string path = Path.GetFullPath("C:\\foo\\..\\bar"); // path = "C:\\bar"

More Info

关于.net - 从 .NET 中的路径中删除点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/970911/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com