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. find path

find path

Scheduled Pinned Locked Moved C#
csharpasp-nethelp
5 Posts 3 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.
  • V Offline
    V Offline
    vunhat
    wrote on last edited by
    #1

    In ASP.net,I can use mappath method to find my path exactly if it put in my application ,but Window form,I can't Ex: in windodw form,I don't know use which method to find the path which I put in obj directory

    help me

    X H 2 Replies Last reply
    0
    • V vunhat

      In ASP.net,I can use mappath method to find my path exactly if it put in my application ,but Window form,I can't Ex: in windodw form,I don't know use which method to find the path which I put in obj directory

      help me

      X Offline
      X Offline
      xibeifeijian
      wrote on last edited by
      #2

      Just use: AppDomain.CurrentDomain.BaseDirectory please.

      :^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)

      V 1 Reply Last reply
      0
      • X xibeifeijian

        Just use: AppDomain.CurrentDomain.BaseDirectory please.

        :^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)

        V Offline
        V Offline
        vunhat
        wrote on last edited by
        #3

        thanks about your answer,however my thought is not that; I will give a Example In windows Form if I put a Vunhat Named Created directory out directory debug and peer bin directory(or peer Debug directory) I don't know how to find the files in VuNhat directory because the default directory is actived is "......bin\\Debug\\"

        help me

        V 1 Reply Last reply
        0
        • V vunhat

          thanks about your answer,however my thought is not that; I will give a Example In windows Form if I put a Vunhat Named Created directory out directory debug and peer bin directory(or peer Debug directory) I don't know how to find the files in VuNhat directory because the default directory is actived is "......bin\\Debug\\"

          help me

          V Offline
          V Offline
          vunhat
          wrote on last edited by
          #4

          I ask permission to add ,If I use comannd File.Exist("Vunhat\\Hoang.txt"),the result is false Hoang.txt is in the directory Vunhat and VuNhat peer Debug directory or peer bin directory

          help me

          1 Reply Last reply
          0
          • V vunhat

            In ASP.net,I can use mappath method to find my path exactly if it put in my application ,but Window form,I can't Ex: in windodw form,I don't know use which method to find the path which I put in obj directory

            help me

            H Offline
            H Offline
            Hesham Yassin
            wrote on last edited by
            #5

            use System.IO.Path.GetFullPath(file name);

            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