Results 1 to 5 of 5

Thread: Saving files to My Documents Folder

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    England
    Posts
    2

    Post

    How do you save data into the My Documents folder in NT and 95/8

    Any help much appreciated

  2. #2
    Guest

    Post

    It's actually a Physical Directory on your hard drive. Just save the file in there. It's on the root of your drive..

    C:\My Documents

    If you are doing it on a 16-Bit system it's ..

    C:\MYDOCU~1

    Hope this helps.


    ------------------
    John T. Mieske
    Star Trek LCARS programmer

    Knight Vision Enterprises
    [email protected]

  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    You are not supposed to hard code the paths to various Windows folders in your apps. That is like assuming that the WINDOWS directory is always C:\WINDOWS....

    You can either read it from the registry or use the code from one of my previous posts:
    http://www.vb-world.net/ubb/Forum1/HTML/012687.html

    Tom

  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    England
    Posts
    2

    Post

    Thanks for the replies.

    The real problem is that the app i'm doing is for a local school and the kids get the profile from a server when they log on, this means that for each kid that uses the app the My Documents folder changes ( from what i can see it actually resides on the server), and to keep things simple the app will just save the data into the kids My Documents folder. Hope this helps explain a bit more about the problem.

  5. #5
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    The link to the code that I had posted should still work in that scenario

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