That would depend upon your application.  If you are doing a windows application for example you would use something like:

 

System.Windows.Forms.Application.ExecutablePath