Projede Exe dosyanın çalıştığı konum — Csharp
[code lang=”csharp”]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;//www.gorselprogramlama.com/
using System.Windows.Forms;
namespace proje_klasoru
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnGoster_Click(object sender, EventArgs e)
{
label1.Text = System.IO.Path.GetDirectoryName(Application.ExecutablePath);
}
}//www.gorselprogramlama.com/
}
[/code]


Diğer bir alternatif; Direk programın adını verseniz de olur.