Current Directory Issues

Mudaero

New member
Joined
Jun 5, 2007
Messages
1
Programming Experience
3-5
I have a .dll file that I have written and want to output files into the directory the .dll is contained in. However, when I use System.Windows.Forms.Application.StartupPath, I get the current location of the program that's using the .dll. Can anyone tell me how I could go about finding the location of the .dll and not the location of the program that's using it?

Thanks
Mike
 
Reflection.Assembly.GetExecutingAssembly.Location
 
Back
Top