0

如何以编程方式引用C:\Users\Public\Public Recorded TV

Environment.SpecialFolder吗?

4

1 回答 1

1

肯定有比这更直接(并且支持本地化)的方法吗?

string PublicRecordedTV = Path.Combine(new DirectoryInfo(
  Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments)
).Parent.FullName, "Recorded TV");
于 2013-02-22T01:18:35.933 回答