Results 1 to 3 of 3

Thread: [RESOLVED] [2.0][Urgent] Pathing My Documents

  1. #1

    Thread Starter
    Hyperactive Member Quasar6's Avatar
    Join Date
    Mar 2008
    Location
    Sol 3
    Posts
    325

    Resolved [RESOLVED] [2.0][Urgent] Pathing My Documents

    Hi guys.

    I need to save a file to and read a file from the My Documents folder of the current user.

    How can I retrieve the filepath?

    Frantic thanks,
    Qu.
    "Why do all my attempts at science end with me getting punched by batman?" xkcd.

    |Pong||
    Sorry for not posting more often.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2.0][Urgent] Pathing My Documents

    CSharp Code:
    1. Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
    or
    CSharp Code:
    1. Environment.GetFolderPath(Environment.SpecialFolder.Personal)
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member Quasar6's Avatar
    Join Date
    Mar 2008
    Location
    Sol 3
    Posts
    325

    Re: [2.0][Urgent] Pathing My Documents

    Thank you so much jmc. I swear I'd rate you, but the forums won't let me. I guess I rate you too often.

    I saw your post yesterday, and was able to fix my project at the last second, but didn't have enough time to reply before I had to leave. So: thanks again. I really mean it.
    "Why do all my attempts at science end with me getting punched by batman?" xkcd.

    |Pong||
    Sorry for not posting more often.

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