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 127 views
1 answer 192 views
192 views asked Jan 14, 2017 by avibootz
1 answer 128 views
2 answers 238 views
1 answer 125 views
...