|
-
Dec 9th, 2001, 09:36 PM
#1
Thread Starter
Junior Member
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!!
-
Dec 10th, 2001, 04:23 AM
#2
Hyperactive Member
Have a look at "appDomain"
For Example...
VB Code:
Label1.Text = "Base Directory: " & AppDomain.CurrentDomain.BaseDirectory
-
Dec 10th, 2001, 07:59 PM
#3
Thread Starter
Junior Member
Thank you Bananafish,
i'll go try it out.....
hope that it works for my case.....
Thank you!!!
-
Dec 11th, 2001, 12:20 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|