Document and settings/<userid> path
Hello,
I need to know the best way to get the Documents and settings/<userid> path in C#. I have googled a bit and not found what I need.
Is there a better way that using; System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) and then removing the last directory name?
Thanks
Re: Document and settings/<userid> path
Code:
string userFolder = "C:\\Documents and Settings\\" + Environment.UserName;
Provided the folder is the same as their username, it would "work"... Other than that, I couldn't find any builtin function to retrieve exactly what you're looking for.
Re: Document and settings/<userid> path
Thank you, at least im not missing anything obvious and your idea was simpler than mine :-)