current file

  • Thread starter Thread starter KK
  • Start date Start date
K

KK

How to get the current file name in vb.net.

For example. I am executing a method in vb.net dll say 'xyz.dll"

I want to use the filename 'xyz.dll' in side the method.

any ideas?

Thanks
 
Assembly.GetExecutingAssembly()

How to get the current file name in vb.net.

For example. I am executing a method in vb.net dll say 'xyz.dll"

I want to use the filename 'xyz.dll' in side the method.

any ideas?

Thanks
 
Sorry for the incomplete post. This is what I meant:

System.IO.Path.GetFileName(System.Reflection.Assembly.GetExecutingAssembly().CodeBase)

Assembly.GetExecutingAssembly()

How to get the current file name in vb.net.

For example. I am executing a method in vb.net dll say 'xyz.dll"

I want to use the filename 'xyz.dll' in side the method.

any ideas?

Thanks
 
KK said:
How to get the current file name in vb.net.

For example. I am executing a method in vb.net dll say 'xyz.dll"

\\\
.... = [Assembly].GetExecutingAssembly().Location
///
 

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