Danny Beckett
Danny Beckett

Reputation: 20838

How to programmatically access Public Recorded TV?

How can I programmatically reference C:\Users\Public\Public Recorded TV?

Is there an Environment.SpecialFolder?

Upvotes: 0

Views: 158

Answers (1)

Danny Beckett
Danny Beckett

Reputation: 20838

Surely there's a more direct (and localisation-supported) method than this?

string PublicRecordedTV = Path.Combine(new DirectoryInfo(
  Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments)
).Parent.FullName, "Recorded TV");

Upvotes: 1

Related Questions