PC Review


Reply
Thread Tools Rate Thread

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

 
 
JuLiE Dxer
Guest
Posts: n/a
 
      9th Feb 2005

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
 
Reply With Quote
 
 
 
 
Dennis Myrén
Guest
Posts: n/a
 
      9th Feb 2005
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.Environment.SpecialFolder.Personal);
Console.WriteLine(path);
Console.Read();

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"JuLiE Dxer" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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



 
Reply With Quote
 
JuLiE Dxer
Guest
Posts: n/a
 
      9th Feb 2005
On Wed, 9 Feb 2005 10:39:52 +0100, "Dennis Myrén" <(E-Mail Removed)>
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.Environment.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.Environment.SpecialFolder.Personal))


tusen tak Dennis fra Norge? hhehe

mange tak ingen
 
Reply With Quote
 
Dennis Myrén
Guest
Posts: n/a
 
      9th Feb 2005
Where are you from ?

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"JuLiE Dxer" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Wed, 9 Feb 2005 10:39:52 +0100, "Dennis Myrén" <(E-Mail Removed)>
> 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.Environment.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.Environment.SpecialFolder.Personal))
>
>
> tusen tak Dennis fra Norge? hhehe
>
> mange tak ingen



 
Reply With Quote
 
JuLiE Dxer
Guest
Posts: n/a
 
      9th Feb 2005

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" <(E-Mail Removed)>
wrote:

>Where are you from ?


 
Reply With Quote
 
Dennis Myrén
Guest
Posts: n/a
 
      9th Feb 2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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" <(E-Mail Removed)>
> wrote:
>
>>Where are you from ?

>



 
Reply With Quote
 
JuLiE Dxer
Guest
Posts: n/a
 
      9th Feb 2005
On Wed, 9 Feb 2005 16:16:05 +0100, "Dennis Myrén" <(E-Mail Removed)>
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Coult not find specified object" and "Path-File access error" messages Robert Crandal Microsoft Excel Programming 2 19th Dec 2009 09:12 PM
"Shared documents" Folder Is Displayed As "documents" In Path Jim Windows XP General 3 29th Aug 2008 06:57 PM
Retrieve path to "documents and settings / user" Christian Havel Microsoft C# .NET 1 23rd Nov 2007 11:20 AM
I Wanna change my default "Documents and settings" folder's path =?Utf-8?B?SlJBbmRyYWRl?= Windows XP General 4 24th Jun 2007 04:55 AM
<forms name="CompanyWeb" loginUrl="login.aspx" protection="All" path="/" /> Murphy Microsoft ASP .NET 2 19th Apr 2004 08:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:41 PM.