I have a folder in c:\program files(x86)\company\application\ which contains all the app files.
How can I get the path like C:\program files(x86)\company?
I cannot use Application.Startuppath as it will return c:\program files)x86)\company\application.
Thanks.
Use
Directory.GetParent(string path)In your app include
System.IOnamespaceand use