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. Temp Folder

Temp Folder

Scheduled Pinned Locked Moved C#
question
6 Posts 5 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.
  • H Offline
    H Offline
    hadad
    wrote on last edited by
    #1

    Hello, How can I get the path of the current user Temp file.

    Dad

    D realJSOPR 2 Replies Last reply
    0
    • H hadad

      Hello, How can I get the path of the current user Temp file.

      Dad

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      System.IO.Path.GetTempPath(); Edit: Environment.GetEnvironmentVariable("TEMP"); or Environment.GetEnvironmentVariable("TMP"); will also work but 1. It gives the path in 8.3 format 2. If at any point in the future MS changes the Environment variable it may break(!) so I'd use the initial suggestion.

      Dave
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
      Expect everything to be hard and then enjoy the things that come easy. (code-frog)

      1 Reply Last reply
      0
      • H hadad

        Hello, How can I get the path of the current user Temp file.

        Dad

        realJSOPR Offline
        realJSOPR Offline
        realJSOP
        wrote on last edited by
        #3

        Google. For cryin' out loud, put some freakin' effort into your work. Asking here takes MANY TIMES LONGER than using google.

        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

        L 1 Reply Last reply
        0
        • realJSOPR realJSOP

          Google. For cryin' out loud, put some freakin' effort into your work. Asking here takes MANY TIMES LONGER than using google.

          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          John Simmons / outlaw programmer wrote:

          Asking here takes MANY TIMES LONGER than using google.

          I stopped wondering why people use message boards for such simple answers when using google they would have found the solutions in ten seconds. :sigh:

          L 1 Reply Last reply
          0
          • L Lost User

            John Simmons / outlaw programmer wrote:

            Asking here takes MANY TIMES LONGER than using google.

            I stopped wondering why people use message boards for such simple answers when using google they would have found the solutions in ten seconds. :sigh:

            L Offline
            L Offline
            lisan_al_ghaib
            wrote on last edited by
            #5

            google is loosing its mojo :-\

            L 1 Reply Last reply
            0
            • L lisan_al_ghaib

              google is loosing its mojo :-\

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Not for me ;)

              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