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

            Console.WriteLine(s);
        }
    }
}

/*
run:
  
C:\Windows\system32

*/

 



answered Jan 14, 2017 by avibootz

Related questions

1 answer 205 views
1 answer 268 views
268 views asked Jan 14, 2017 by avibootz
1 answer 221 views
2 answers 368 views
...