How to get the Templates 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.Templates);

            Console.WriteLine(s);
        }
    }
}

/*
run:
  
C:\Users\USER\AppData\Roaming\Microsoft\Windows\Templates

*/

 



answered Jan 14, 2017 by avibootz

Related questions

1 answer 214 views
214 views asked Jan 14, 2017 by avibootz
1 answer 208 views
2 answers 358 views
1 answer 227 views
2 answers 285 views
285 views asked Aug 11, 2023 by avibootz
1 answer 177 views
177 views asked Aug 7, 2023 by avibootz
...