By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,672 Members | 1,644 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,672 IT Pros & Developers. It's quick & easy.

How do I find retrieve the "My Documents" qualified path?

P: n/a

Is there a way via C# to programmatically retrieve the full path name
to folders like "My Documents" ??

I'm seeing examples with the use of Shell32 stuff I believe,

SHGetSpecialFolderLocation

and I have no knowledge nor experience using such stuff. I've seen
some examples pertaining to these special folders but it's all Greek
to me and I'm sure somebody here could explain it 100 times quicker
and clearer in a fraction of the wording.

Thanks for any help...

MsJ
Nov 16 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
The System.Environment.SpecialFolder defines a set of special folders, like
My Documents,
which is represented as System.Environment.SpecialFolder.Personal.

string path =
System.Environment.GetFolderPath(System.Environmen t.SpecialFolder.Personal);
Console.WriteLine(path);
Console.Read();

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"JuLiE Dxer" <Ms*****@verizon.net> wrote in message
news:9q********************************@4ax.com...

Is there a way via C# to programmatically retrieve the full path name
to folders like "My Documents" ??

I'm seeing examples with the use of Shell32 stuff I believe,

SHGetSpecialFolderLocation

and I have no knowledge nor experience using such stuff. I've seen
some examples pertaining to these special folders but it's all Greek
to me and I'm sure somebody here could explain it 100 times quicker
and clearer in a fraction of the wording.

Thanks for any help...

MsJ

Nov 16 '05 #2

P: n/a
On Wed, 9 Feb 2005 10:39:52 +0100, "Dennis Myrén" <de****@oslokb.no>
wrote:
The System.Environment.SpecialFolder defines a set of special folders, like
My Documents,
which is represented as System.Environment.SpecialFolder.Personal.

string path =
System.Environment.GetFolderPath(System.Environme nt.SpecialFolder.Personal);
Console.WriteLine(path);
Console.Read();


Thanks a bunch..

I just stumbled across a similar post in this group back in 2002 via
google groups. Thank goodness you posted this, though. I was just
about to give up on the google search !

System.Environment.GetFolderPath(System.Environmen t.SpecialFolder.Personal))
tusen tak Dennis fra Norge? hhehe

mange tak ingen
Nov 16 '05 #3

P: n/a
Where are you from ?

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"JuLiE Dxer" <Ms*****@verizon.net> wrote in message
news:k9********************************@4ax.com...
On Wed, 9 Feb 2005 10:39:52 +0100, "Dennis Myrén" <de****@oslokb.no>
wrote:
The System.Environment.SpecialFolder defines a set of special folders,
like
My Documents,
which is represented as System.Environment.SpecialFolder.Personal.

string path =
System.Environment.GetFolderPath(System.Environm ent.SpecialFolder.Personal);
Console.WriteLine(path);
Console.Read();


Thanks a bunch..

I just stumbled across a similar post in this group back in 2002 via
google groups. Thank goodness you posted this, though. I was just
about to give up on the google search !

System.Environment.GetFolderPath(System.Environmen t.SpecialFolder.Personal))
tusen tak Dennis fra Norge? hhehe

mange tak ingen

Nov 16 '05 #4

P: n/a

I'm from Oregon :)

Jeg er fra Oregon :)

I know a little norsk, though.

jeg kan litte norsk her :)

On Wed, 9 Feb 2005 11:01:45 +0100, "Dennis Myrén" <de****@oslokb.no>
wrote:
Where are you from ?


Nov 16 '05 #5

P: n/a
That is cool, a guy from Oregon speaking norwegian!

I am swedish but live in Oslo.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"JuLiE Dxer" <Ms*****@verizon.net> wrote in message
news:jf********************************@4ax.com...

I'm from Oregon :)

Jeg er fra Oregon :)

I know a little norsk, though.

jeg kan litte norsk her :)

On Wed, 9 Feb 2005 11:01:45 +0100, "Dennis Myrén" <de****@oslokb.no>
wrote:
Where are you from ?

Nov 16 '05 #6

P: n/a
On Wed, 9 Feb 2005 16:16:05 +0100, "Dennis Myrén" <de****@oslokb.no>
wrote:
That is cool, a guy from Oregon speaking norwegian!

I am swedish but live in Oslo.

guy, no.. :)

I see,

Arbeider du inn Norge ?

jag talar inte svenska her :(
Nov 16 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.