How to get the My Music path in C#

1 Answer

0 votes
using System;

namespace ConsoleApplication_C_Sharp
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Environment.GetFolderPath(Environment.SpecialFolder.MyMusic);

            Console.WriteLine(s);
        }
    }
}

/*
run:
  
C:\Users\User\Music

*/

 



answered Jan 14, 2017 by avibootz

Related questions

1 answer 149 views
149 views asked Jan 13, 2017 by avibootz
1 answer 131 views
131 views asked Jan 14, 2017 by avibootz
1 answer 175 views
175 views asked Jan 14, 2017 by avibootz
1 answer 192 views
192 views asked Jan 14, 2017 by avibootz
1 answer 270 views
1 answer 259 views
259 views asked Apr 8, 2014 by avibootz
1 answer 249 views
...