Reputation: 51
I made a script which checks a special dir for music and records the song names in a text file. But my problem is that I have to give the dir manually. Is there a way in C# to find the Music folder on windows automatically?
Upvotes: 4
Views: 2232
Reputation: 7736
Environment.GetFolderPath(Environment.SpecialFolder.MyMusic);
Upvotes: 11
Reputation: 822
Environment.GetFolderPath(Environment.SpecialFolder.MyMusic));
Upvotes: 3