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. hi, help me , exe path problem in c#.net

hi, help me , exe path problem in c#.net

Scheduled Pinned Locked Moved C#
csharphelpxmlquestion
6 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.
  • P Offline
    P Offline
    premkamalg
    wrote on last edited by
    #1

    Hi every one, i write one application in that application i used one xmlfile(path is "c:\doc\xmlfile.xml"), now i send my exe to another system and also xmlfile. now i will put my xmlfile where my exe is loaded in the system. how can i access the exe path at runtime in c#.net plz help me .

    A 1 Reply Last reply
    0
    • P premkamalg

      Hi every one, i write one application in that application i used one xmlfile(path is "c:\doc\xmlfile.xml"), now i send my exe to another system and also xmlfile. now i will put my xmlfile where my exe is loaded in the system. how can i access the exe path at runtime in c#.net plz help me .

      A Offline
      A Offline
      Andrei Ungureanu
      wrote on last edited by
      #2

      Hi, Try using

      Application.StartupPath

      . It gives you the path of the current application. Hope it helps.

      Do your best to be the best

      P 3 Replies Last reply
      0
      • A Andrei Ungureanu

        Hi, Try using

        Application.StartupPath

        . It gives you the path of the current application. Hope it helps.

        Do your best to be the best

        P Offline
        P Offline
        premkamalg
        wrote on last edited by
        #3

        Thanks, i got the path os exe

        Hi, Thanks, if u think it's good. otherwise sorry.

        1 Reply Last reply
        0
        • A Andrei Ungureanu

          Hi, Try using

          Application.StartupPath

          . It gives you the path of the current application. Hope it helps.

          Do your best to be the best

          P Offline
          P Offline
          premkamalg
          wrote on last edited by
          #4

          Thanks, i got the path the exe

          Hi, Thanks, if u think it's good. otherwise sorry.

          1 Reply Last reply
          0
          • A Andrei Ungureanu

            Hi, Try using

            Application.StartupPath

            . It gives you the path of the current application. Hope it helps.

            Do your best to be the best

            P Offline
            P Offline
            premkamalg
            wrote on last edited by
            #5

            Thanks, i got the path of exe

            Hi, Thanks, if u think it's good. otherwise sorry.

            N 1 Reply Last reply
            0
            • P premkamalg

              Thanks, i got the path of exe

              Hi, Thanks, if u think it's good. otherwise sorry.

              N Offline
              N Offline
              Nafiseh Salmani
              wrote on last edited by
              #6

              be thankful is good , but not more than usual !!! :laugh:;)

              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