Click here to Skip to main content
15,900,438 members
Please Sign up or sign in to vote.
4.00/5 (3 votes)
See more:
Is it possible to get the program's own filename on runtime?(exe file)
Posted

1 solution

Yes, of course.



OK, here's what I use:

System.Windows.Forms.Application.ExecutablePath

and sometimes I pass that through

System.IO.Path.GetFileNameWithoutExtension()

modified on Thursday, January 22, 2009 10:40 PM
 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900