开发者

How do I convert a relative path to a fully qualified path in C# / .NET?

Let's say I have a file name defined as "..............\bin\prices.xls", is there a simple way to convert that to a fully qualified path (one that includes the Drive letter, colon and all folders to the 开发者_Python百科file)?


Try Path.GetFullPath():

Returns the absolute path for the specified path string.

The absolute path includes all information required to locate a file or directory on a system.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜