Getting a normalized app path info.

F

Frank Rizzo

System.Reflection.Assembly.GetExecuting().GetName().CodeBase return the path
in URL format.

file:///C:/Code/.../MyFile.DLL

Is there a function within the framework to return the standard path
(c:\winnt\...\x.dll) or a function to convert the URL path to a regular
path?

Side question. Can I use the URL path format to open files with the stream
classes?

Thanks
 
I

Ignacio Machin

Hi,


Assembly.GetExecutingAssembly().Location;

Will do the trick :)

Hope this help,
 

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

Top