用双斜线完整路径(C#) [英] Full path with double slash (C#)
本文介绍了用双斜线完整路径(C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能通过使用获得双斜线完整路径 Path.GetFullPath
?事情是这样的:
Is it possible to get a full path with double slash by using Path.GetFullPath
? Something like this:
C:\\Users\\Mammamia\\Videos\\Documents\\CFD\\geo_msh\\cubeOp.txt
而不是这样的:
C:\Users\Mammamia\Videos\Documents\CFD\geo_msh\cubeOp.txt
或者有没有其他的方法?
Or is there any other method?
推荐答案
你的意思呢?
Path.GetFullPath(path).Replace(@"\", @"\\");
这篇关于用双斜线完整路径(C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文