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/ mr*****@charter.net
"Jon Davis" <jo*@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:ud**************@TK2MSFTNGP12.phx.gbl...
It also means that you type it in differently, and it looks different too.
Jon
" Jack Meyhoff" <po********@127.0.0.10> wrote in message
news:uf**************@tk2msftngp13.phx.gbl... It also means you can change this ENV variable and it will point to the
new location easy too.
" Jack Meyhoff" <po********@127.0.0.10> wrote in message
news:uL*************@TK2MSFTNGP10.phx.gbl... Its also better as the regkey may change and that API wont (well it
may but less likely than the reg) :D
"Michael Mayer" <mr*****@charter.net> wrote in message
news:en**************@tk2msftngp13.phx.gbl...
> "ghost" <ia******@hotmail.com> wrote in message
> news:Vu********************@comcast.com...
> > string mydocs =
> >
>
Environment.GetFolderPath(Environment.SpecialFolde r.Personal).ToString > ();
>
> excellent - that's even easier than reading the registry!
>
>