|
-
Jul 15th, 2006, 04:20 PM
#1
Thread Starter
Arabic Poster
[2005] Users and their "My documents"
Hi all,
Long time since I asked a question and I hope I get an answer
How do I get all user names on a local computer. Another thing, How do I get their "Documents and Settings" sub folders?
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jul 15th, 2006, 04:24 PM
#2
Frenzied Member
Re: [2005] Users and their "My documents"
In a crude way you could just loop over all the directories in c:\Documents and settings
Use
VB Code:
IO.Directory.GetDirectories
-
Jul 15th, 2006, 04:26 PM
#3
Thread Starter
Arabic Poster
Re: [2005] Users and their "My documents"
 Originally Posted by agmorgan
In a crude way you could just loop over all the directories in c:\Documents and settings
Use
VB Code:
IO.Directory.GetDirectories
I want only users in the "Users" group without the "ASP.NET" or administrators
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jul 15th, 2006, 05:08 PM
#4
Frenzied Member
Re: [2005] Users and their "My documents"
Once you get the list of users you should be able to use something like
VB Code:
Environment.SpecialFolder.ApplicationData()
etc
-
Jul 15th, 2006, 06:14 PM
#5
Thread Starter
Arabic Poster
Re: [2005] Users and their "My documents"
 Originally Posted by agmorgan
Once you get the list of users you should be able to use something like
VB Code:
Environment.SpecialFolder.ApplicationData()
etc
Thanks for the reply
But this only works for the current user, that's not what I want
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|