By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,673 Members | 1,302 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,673 IT Pros & Developers. It's quick & easy.

Application Path of Parent EXE

P: n/a
I have a class library (DLL) that needs to know the path of the EXE that
called it.

How can I find this out?

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
>Try Assembly.GetCallingAssembly().CodeBase.

Better yet:


This will give you a normal style file name, not a "URI"-type file

================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)
Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.