Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the music folder directory using C#?

Tags:

c#

windows

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?

like image 547
Renzum Avatar asked Dec 18 '22 10:12

Renzum


1 Answers

Environment.GetFolderPath(Environment.SpecialFolder.MyMusic);
like image 106
SledgeHammer Avatar answered Dec 24 '22 01:12

SledgeHammer