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 317 views
1 answer 271 views
271 views asked Jan 14, 2017 by avibootz
1 answer 295 views
1 answer 732 views
1 answer 210 views
210 views asked Jan 14, 2017 by avibootz
1 answer 214 views
214 views asked Jan 14, 2017 by avibootz
1 answer 248 views
248 views asked Jan 14, 2017 by avibootz
...