Get CompanyName, ProductName and StartupPath from Application
using System;
using System.Windows.Forms;
public class MainClass : System.Windows.Forms.Form
{
public MainClass()
{
Console.WriteLine("Company: " + Application.CompanyName);
Console.WriteLine("App Name: " + Application.ProductName);
Console.WriteLine("I live here: "+ Application.StartupPath);
}
[STAThread]
static void Main()
{
Application.Run(new MainClass());
}
}
Output Company: MainClass
App Name: MainClass
I live here: C:\Java_Dev\WEB\dev\CSharp
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
|