DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: App.Path in .Net?

  1. #1
    Calvin Guest

    App.Path in .Net?


    How do you get the App.Path like good old VB6 used to let you do?

    Thanks,
    Calvin...

  2. #2
    Corrado Cavalli Guest

    Re: App.Path in .Net?

    Application.StartupPath or EnvironMent.ExecutablePath (please verify the
    latter)

    HTH
    Corrado



  3. #3
    Calvin Guest

    Re: App.Path in .Net?


    Thanks for the help. The last one should be Environment.CurrentDirectory.

    Thanks again,
    Calvin...

    "Corrado Cavalli" <corradocavalli_NOSPAM_@tin.it> wrote:
    >Application.StartupPath or EnvironMent.ExecutablePath (please verify the
    >latter)
    >
    >HTH
    >Corrado
    >
    >



  4. #4
    Roger Aikin Guest

    Re: App.Path in .Net?


    This is one I struggled with too. I finally settled on using
    AppDomain.CurrentDomain.BaseDirectory
    because it doesn't include the executable file name. If you want the actual
    filename of the executable, and it's extension, as well as the path, then
    you can use Application.ExecutablePath.

    HTH,
    Roger

    "Calvin" <DigitalQuark@msn.com> wrote:
    >
    >Thanks for the help. The last one should be Environment.CurrentDirectory.
    >
    >Thanks again,
    >Calvin...
    >
    >"Corrado Cavalli" <corradocavalli_NOSPAM_@tin.it> wrote:
    >>Application.StartupPath or EnvironMent.ExecutablePath (please verify the
    >>latter)
    >>
    >>HTH
    >>Corrado
    >>
    >>

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center