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. Mobile Development
  3. Mobile
  4. Working Directory

Working Directory

Scheduled Pinned Locked Moved Mobile
question
4 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.
  • D Offline
    D Offline
    divyesh1432
    wrote on last edited by
    #1

    Hi, How can I get current application working directory? Thanks

    A R P 3 Replies Last reply
    0
    • D divyesh1432

      Hi, How can I get current application working directory? Thanks

      A Offline
      A Offline
      Alain Rist
      wrote on last edited by
      #2

      See http://www.codeproject.com/script/Forums/View.aspx?fid=13695&msg=2227520[^] GetModuleFileName() will give you the full path of the calling applicaton. cheers, AR

      1 Reply Last reply
      0
      • D divyesh1432

        Hi, How can I get current application working directory? Thanks

        R Offline
        R Offline
        Rupesh Kumar Swami
        wrote on last edited by
        #3

        hi, try following Path.GetDirectoryName(Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase.ToString)

        Rupesh Kumar Swami Software Developer, Integrated Solution, Bikaner (India) My Company Award: Best VB.NET article of June 2008: Create Column Charts Using OWC11

        1 Reply Last reply
        0
        • D divyesh1432

          Hi, How can I get current application working directory? Thanks

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

          Hi divyesh1432, try this code System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase.ToString()); MessageBox.Show(dir.Parent.FullName.ToString()); This code is useful for .Net CF. hope that this may be help

          Pavan Pareta

          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