get path to all user's documents folder

  • Thread starter Thread starter Dennis C. Drumm
  • Start date Start date
D

Dennis C. Drumm

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

Thanks,

Dennis
 
Environment.GetFolderPath(Environment.SpecialFolder.<OneoftheOptions>)

Is it not avaiable in the option?...

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

Dennis
 
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
 
Thanks,

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

Dennis
 
Back
Top