This blog is moved to
http://amalhashim.wordpress.com

Friday, May 22, 2009

Get Path where the Executable is running from in C#

Option#1
string path1 = System.Windows.Forms.Application.ExecutablePath;

Option#2
String path2 = System.Reflection.Assembly.GetExecutingAssembly().Location;

No comments: