منبع:https://barnamenevis.org/showpo...8&postcount=19

کد:

MessageBox.Show(AppDomain.CurrentDomain.BaseDirect  ory)


یا :
کد:

MessageBox.Show(System.IO.Directory.GetCurrentDire  ctory())


یا :
کد:

MessageBox.Show(Application.StartupPath)

یا:
کد:

MessageBox.Show(System.IO.Path.GetDirectoryName(Ap  plication.ExecutablePath))


کاربر bad_boy_2007 یاد اوری کردند با این کد هم می شود

My.Application.Info.DirectoryPath