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

get path to all user's documents folder

P: n/a
How do I programmatically get the path for the windows shared documents
folder which is also the all user's document folder.

Thanks,

Dennis

Mar 14 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
VJ
Environment.GetFolderPath(Environment.SpecialFolde r.<OneoftheOptions>)

Is it not avaiable in the option?...

VJ

"Dennis C. Drumm" <dc******@community.nospamwrote in message
news:2A**********************************@microsof t.com...
How do I programmatically get the path for the windows shared documents
folder which is also the all user's document folder.

Thanks,

Dennis

Mar 14 '07 #2

P: n/a
That is where i started, but there is not a SecialFolder for the all-user's
documents folder. Any other suggestions???

Dennis
"VJ" <no***********@yahoo.comwrote in message
news:u1**************@TK2MSFTNGP06.phx.gbl...
Environment.GetFolderPath(Environment.SpecialFolde r.<OneoftheOptions>)

Is it not avaiable in the option?...

VJ

"Dennis C. Drumm" <dc******@community.nospamwrote in message
news:2A**********************************@microsof t.com...
>How do I programmatically get the path for the windows shared documents
folder which is also the all user's document folder.

Thanks,

Dennis

Mar 14 '07 #3

P: n/a
VJ
Then the way to go is native API. I am not sure of the exact command, but
the below site may help.

http://www.pinvoke.net/

There is one more Environment.GetEnvironmentVariable("") <-- but I doubt it
might be there...

VJ

"Dennis C. Drumm" <dc******@community.nospamwrote in message
news:3E**********************************@microsof t.com...
That is where i started, but there is not a SecialFolder for the
all-user's documents folder. Any other suggestions???

Dennis
"VJ" <no***********@yahoo.comwrote in message
news:u1**************@TK2MSFTNGP06.phx.gbl...
>Environment.GetFolderPath(Environment.SpecialFold er.<OneoftheOptions>)

Is it not avaiable in the option?...

VJ

"Dennis C. Drumm" <dc******@community.nospamwrote in message
news:2A**********************************@microso ft.com...
>>How do I programmatically get the path for the windows shared documents
folder which is also the all user's document folder.

Thanks,

Dennis


Mar 14 '07 #4

P: n/a
Thanks,

As you suspected, I couldn't find the proper string for using
GetEnvironmentVariable, so i had to use a pinvoke command.

Dennis
"VJ" <no***********@yahoo.comwrote in message
news:uN**************@TK2MSFTNGP04.phx.gbl...
Then the way to go is native API. I am not sure of the exact command, but
the below site may help.

http://www.pinvoke.net/

There is one more Environment.GetEnvironmentVariable("") <-- but I doubt
it might be there...

VJ

"Dennis C. Drumm" <dc******@community.nospamwrote in message
news:3E**********************************@microsof t.com...
>That is where i started, but there is not a SecialFolder for the
all-user's documents folder. Any other suggestions???

Dennis
"VJ" <no***********@yahoo.comwrote in message
news:u1**************@TK2MSFTNGP06.phx.gbl...
>>Environment.GetFolderPath(Environment.SpecialFol der.<OneoftheOptions>)

Is it not avaiable in the option?...

VJ

"Dennis C. Drumm" <dc******@community.nospamwrote in message
news:2A**********************************@micros oft.com...
How do I programmatically get the path for the windows shared documents
folder which is also the all user's document folder.

Thanks,

Dennis


Mar 15 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.