Finding My documents on a network


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Finding My documents on a network

  1. #1
    Join Date
    Nov 2004
    Location
    Lincoln, England
    Posts
    100

    Lightbulb Finding My documents on a network

    Hey Guys,

    I'm not going to lie, I have no idea how "My Documents" works on a network, and unfortunately, it has caught up with me.

    Is it possible to get a programme to make a directory using mkdir for a user in "My Documents", and if so, how would I get the complete path for my Documents? Can it just be done from
    My Computer\HKEY_CURRENT_USER\Volatile Environment key in the Registry?

    This has got me in a real rut, any help mucho appreciated

    TIA

    Karl
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    By default, "My Documents" is a shortcut to "<System Drive>\Documents and Settings\<username>\My Documents", but the user may change this location. See http://vbnet.mvps.org/code/browse/csidl.htm for an example of how to get the folder location for the logged-in user.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Nov 2004
    Location
    Lincoln, England
    Posts
    100
    So could I just add the "my documents" item to the list and use that? or would I have to use them all?
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

  4. #4
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Huh? What list?
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  5. #5
    Join Date
    Nov 2004
    Location
    Lincoln, England
    Posts
    100
    haha i guess i dont understand then. Do you reckon I could do it by using the environ() function?
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center