Merhaba mesut33

Exe değil derken Console App'ın derlenmiş çıktısı da exe oluşturur zaten.

Bunu butonun altına yazacağın tek satır kod ile çalıştırabilirsin.

System.Diagnostics.Process.Start("c:\ornekDizin\ornek.exe");


Bunun dışında aynı Solution içinde olan diğer projeye şöyle erişip çağırabilirsin.

Adım 1: Form Projene Console Projeni referans olarak ekle ve Using System.Diagnostics; kullan.

Adım 2: Console uygulamandaki program.cs içerisinde "class Program" şeklinde olan yerin paşına "public" ekle aşağıdaki gibi dışarıdan erişilebilir olsun.



public class Program
{
public static void Main(string[] args)
{

}
}


Adım 3: returnPath() adında Console Projenin dizinini geri döndüren public bir method oluştur.



public string returnPath()
{
string folder = Environment.CurrentDirectory;
return folder;
}


Adım 4: Form uygulamandaki butonun altında bu şekilde çağır..



private void button_Click(object sender, EventArgs e)
{
ConsoleApplication1 ca = new ConsoleApplication1();
Process.Start(ca.returnPath() + \\"ConsoleApplication1.exe");
}