Re: Find the DotNet Directory by Stoitcho
Stoitcho
Thu Aug 05 16:13:32 CDT 2004
Hi Elmo,
What about to use one of the standard .NET types to get that info
Type t = typeof(string);
Console.WriteLine(Path.GetDirectoryName(t.Assembly.Location));
--
HTH
Stoitcho Goutsev (100) [C# MVP]
"Elmo Watson" <sputnik75043@nospamYahoo.com> wrote in message
news:OLH6LnweEHA.3148@TK2MSFTNGP10.phx.gbl...
> yes - - or - at least the Framework directory - - I'm using the Browse for
> folder dialog - - none of the items in the built in enum list point
> here. - - I'm trying to set the 'root folder' to that folder
>
>
>
> "Andy Becker" <x@x.com> wrote in message
> news:%238n5vbweEHA.2604@TK2MSFTNGP12.phx.gbl...
> > "Elmo Watson" <sputnik75043@nospamYahoo.com> wrote in message
> > news:%23shDz2veEHA.1644@tk2msftngp13.phx.gbl...
> > > How do I programmatically find the most recent DotNet Directory on the
> > > machine of the app that's running?
> > >
> > > Is there a variable/method/property?
> > >
> > >
> >
> > By "most recent", do you mean the framework version?
> >
> > Best Regards,
> >
> > Andy
> >
> >
>
>