I've been offline trying to re-image my machine. Ugh.
While I prefer the Environment.GetFolderPath, it turns out that doesn't work
for me. I really want the folder of My Pictures, which doesn't have to be
under My Documents (so I guess I asked the wrong question). A registry key
points to it exactly, while the Environment.GetFolderPath doesn't have an
entry for Pictures.
But I'll certainly use the GetFolderPath when I can. Didn't realize all the
stuff Environment provides.
--
Mike Mayer
http://www.mag37.com/csharp/ mrmayer@charter.net
"Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:udMbtJFZDHA.1748@TK2MSFTNGP12.phx.gbl...[color=blue]
> It also means that you type it in differently, and it looks different too.
>
> Jon
>
>
> " Jack Meyhoff" <postmaster@127.0.0.10> wrote in message
> news:ufjlPR9YDHA.2476@tk2msftngp13.phx.gbl...[color=green]
> > It also means you can change this ENV variable and it will point to the[/color]
> new[color=green]
> > location easy too.
> >
> >
> > " Jack Meyhoff" <postmaster@127.0.0.10> wrote in message
> > news:uLvbQP9YDHA.388@TK2MSFTNGP10.phx.gbl...[color=darkred]
> > > Its also better as the regkey may change and that API wont (well it[/color][/color][/color]
may[color=blue][color=green]
> > but[color=darkred]
> > > less likely than the reg) :D
> > >
> > >
> > > "Michael Mayer" <mrmayer@charter.net> wrote in message
> > > news:enC9wS8YDHA.2476@tk2msftngp13.phx.gbl...
> > > > "ghost" <iam_bkee@hotmail.com> wrote in message
> > > > news:VuacnSUcrueLXqCiXTWJkA@comcast.com...
> > > > > string mydocs =
> > > > >
> > > >[/color][/color][/color]
Environment.GetFolderPath(Environment.SpecialFolde r.Personal).ToString[color=blue][color=green][color=darkred]
> > > > ();
> > > >
> > > > excellent - that's even easier than reading the registry!
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]