Get folder from Assembly

  • Thread starter Thread starter Jon
  • Start date Start date
J

Jon

Hello all,

How do you get a folder in your web application from a calling
assembly?

Thanks,

Jon
 
Hi,
Hello all,

How do you get a folder in your web application from a calling
assembly?

Thanks,

Jon

You mean, how do you get the folder in which the assembly is located?

If yes, I do this:

FileInfo fileAssembly = new FileInfo( myAssembly.Location );

and then:

fileAssembly.Directory;

HTH,
Laurent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top