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 320 views
1 answer 272 views
272 views asked Jan 14, 2017 by avibootz
1 answer 295 views
1 answer 735 views
1 answer 211 views
211 views asked Jan 14, 2017 by avibootz
1 answer 214 views
214 views asked Jan 14, 2017 by avibootz
1 answer 252 views
252 views asked Jan 14, 2017 by avibootz
...