How to get the common program files X86 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.CommonProgramFilesX86);

            Console.WriteLine(s);
        }
    }
}

/*
run:
  
C:\Program Files (x86)\Common Files

*/

 



answered Jan 14, 2017 by avibootz

Related questions

1 answer 222 views
1 answer 189 views
189 views asked Jan 14, 2017 by avibootz
1 answer 224 views
1 answer 656 views
1 answer 130 views
130 views asked Jan 14, 2017 by avibootz
1 answer 138 views
138 views asked Jan 14, 2017 by avibootz
1 answer 155 views
155 views asked Jan 14, 2017 by avibootz
...