Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Access to My Documents folder?

Access to My Documents folder?

Scheduled Pinned Locked Moved C#
question
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LongRange Shooter
    wrote on last edited by
    #1

    What framework variable do I use to access the path to My Documents?

    L N 2 Replies Last reply
    0
    • L LongRange Shooter

      What framework variable do I use to access the path to My Documents?

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      My Documents is a "special folder" and is accessed using the Shell. So however the framework exposes the Shell that is how you get the solution.

      "Alot of the people on this forum are incredibly stupid, thinking that the internet is real"
      Score: 1.0 in the Soap Box

      led mike

      L 1 Reply Last reply
      0
      • L led mike

        My Documents is a "special folder" and is accessed using the Shell. So however the framework exposes the Shell that is how you get the solution.

        "Alot of the people on this forum are incredibly stupid, thinking that the internet is real"
        Score: 1.0 in the Soap Box

        led mike

        L Offline
        L Offline
        LongRange Shooter
        wrote on last edited by
        #3

        That is not an answer to my question.

        L 1 Reply Last reply
        0
        • L LongRange Shooter

          That is not an answer to my question.

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          They hide the rest of the information in the Documentation[^] :rolleyes:

          "Alot of the people on this forum are incredibly stupid, thinking that the internet is real"
          Score: 1.0 in the Soap Box

          led mike

          1 Reply Last reply
          0
          • L LongRange Shooter

            What framework variable do I use to access the path to My Documents?

            N Offline
            N Offline
            Nader Elshehabi
            wrote on last edited by
            #5

            Hello

            string MyPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);

            Regards:rose:

            H 1 Reply Last reply
            0
            • N Nader Elshehabi

              Hello

              string MyPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);

              Regards:rose:

              H Offline
              H Offline
              HahnTech
              wrote on last edited by
              #6

              The Documentation says it works with 1.1 but I'm not seeing the enum SpecialFolder.

              Ronald Hahn, CNT - Computer Engineering Technologist New Technologies Analyst HahnTech Affiliated With Code Constructors Edmonton, Alberta, Canada Email: rhahn82@telus.net

              N 1 Reply Last reply
              0
              • H HahnTech

                The Documentation says it works with 1.1 but I'm not seeing the enum SpecialFolder.

                Ronald Hahn, CNT - Computer Engineering Technologist New Technologies Analyst HahnTech Affiliated With Code Constructors Edmonton, Alberta, Canada Email: rhahn82@telus.net

                N Offline
                N Offline
                Nader Elshehabi
                wrote on last edited by
                #7

                Hello Why don't you see it in your intellisense?? It should appear. Try writing without the intellisense. What compile error -if any- appears? Piece of advice: Remove you email address to avoid the possibility of spamming.

                Regards:rose:

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups