Results 1 to 4 of 4

Thread: general question.......

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    Singapore
    Posts
    24

    general question.......

    hi,

    i was thinking in .net, is there a way to find out the path you are currently working on??

    You see in vb, there is a way "App.path" that is able to find the currently path you are working on.

    So is there a similar way in .net??

    If there is, is it possible to provide mi a sample.....thank you!!

  2. #2
    Hyperactive Member Bananafish's Avatar
    Join Date
    Jan 2001
    Posts
    394
    Have a look at "appDomain"
    For Example...

    VB Code:
    1. Label1.Text = "Base Directory: " & AppDomain.CurrentDomain.BaseDirectory

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    Singapore
    Posts
    24
    Thank you Bananafish,

    i'll go try it out.....
    hope that it works for my case.....

    Thank you!!!

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    In a WinForm application you also have Application.ExecutablePath() and Application.StartupPath()
    The ExecutablePath property returns the path including the Exe filename while StartupPath only returns the path to the folder (much like App.Path in VB6 and earlier versions).

    Best regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width