Re: Get folder from Assembly
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
Hi,
Jon wrote:
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
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog:
http://www.galasoft-LB.ch
PhotoAlbum:
http://www.galasoft-LB.ch/pictures
Support children in Calcutta:
http://www.calcutta-espoir.ch
.
Relevant Pages
- Re: New Avengers #13 -- Called it again, didnt I?
... > Jon J. Yeager wrote: ... > that I was somehow special or alone in calling it. ... which is why you can't got 3 posts with anyone without it turning ugly. ... (rec.arts.comics.marvel.universe) - Re: Can not get past the welcome screen
... Calling an illegal alien an "undocumented worker" is like calling a ... will bring up a window, in that window on the left side you should see ... that will unzip the files to a folder. ... folder and select the iso file. ... (microsoft.public.windowsxp.general) - Re: Can my class tell if one of its virtual members is overloaded?
... my newsreader doesn't show me the message that Jon is replying to here. ... Is that a problem in my newsreader or wasn't Tony's message posted to the group for some reason? ... calling a protected virtual member. ... there is no point to calling it if no derived classes ... (microsoft.public.dotnet.languages.csharp) - Re: "Save As" window always shows large "thumbnail" icons
... be so difficult to give the user an option to turn off that horrid "Thumbnail View"? ... Not for Save Picture As, it should remember for other things. ... "Jon Danniken" wrote in message ... > The problem is that I save *everything* into that folder, pictures, apps, ... (microsoft.public.windowsxp.customize) - Re: Opening a folder with VB
... I have "Open in the same window" checked in Folder Options. ... "Jon Peltier" wrote: ... I'm not sure commas are prohibited in path names, ... (microsoft.public.excel.programming) |
|