Click to See Complete Forum and Search --> : getting users list


tis707
January 19th, 2008, 05:44 AM
Hi all

Could any one suggest me how to get the users list and size of those folders


i mean C:\Documents and Settings
we will have the folder list who ever logged into the perticula system

i need to get those folder names and size of those folders and have to show it in grid view

any way to do this

TIS

Tischnoetentoet
January 21st, 2008, 08:31 AM
I think you are looking for:

System.Environment.SpecialFolder.Personal

Then, you can simply loop all the directories inside.

tis707
January 21st, 2008, 11:04 PM
yes exactly

Thanks for your reply
and could you pls show a bit of code

Thanks a lot

Tischnoetentoet
January 21st, 2008, 11:56 PM
Did you even try to search?

Anyway, here is "a bit of code":while (true)
{
// Do nothing
}