如何确定一个命名的文件夹的完整路径?文件夹、路径、完整

由网友(一别如斯)分享简介:我要确定某些文件夹的完整路径。在我的数组,我只是有文件夹的名称,但在我的应用程序将得到其他用户的机器安装,我的程序必须能够确定这些文件夹的完整路径。I want to determine the full path of certain folders. In my array, I just have the na...

我要确定某些文件夹的完整路径。在我的数组,我只是有文件夹的名称,但在我的应用程序将得到其他用户的机器安装,我的程序必须能够确定这些文件夹的完整路径。

I want to determine the full path of certain folders. In my array, I just have the names of the folders, but when my application will get installed on another user's machine, my program must be able to determine the full-path of these folders.

如何获得的完整路径?

推荐答案

你的意思是我的文档文件夹和其他人呢?这不是很明显,我从你的问题。

Did you mean the My Documents folder and the rest? It's not obvious for me from your question.

我的文档文件夹为:

 Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)

和特殊系统文件夹的剩余部分可以被检索以类似的方式

And the rest of the special system folders can be retrieved in a similar way.

阅读全文

相关推荐

最新文章