Results 1 to 5 of 5

Thread: [2005] Users and their "My documents"

  1. #1

    Thread Starter
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    [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

  2. #2
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383

    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:
    1. IO.Directory.GetDirectories

  3. #3

    Thread Starter
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [2005] Users and their "My documents"

    Quote Originally Posted by agmorgan
    In a crude way you could just loop over all the directories in c:\Documents and settings
    Use
    VB Code:
    1. 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

  4. #4
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383

    Re: [2005] Users and their "My documents"

    Once you get the list of users you should be able to use something like
    VB Code:
    1. Environment.SpecialFolder.ApplicationData()
    etc

  5. #5

    Thread Starter
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [2005] Users and their "My documents"

    Quote Originally Posted by agmorgan
    Once you get the list of users you should be able to use something like
    VB Code:
    1. 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
  •  



Click Here to Expand Forum to Full Width