|
-
Jan 26th, 2009, 01:08 PM
#1
Thread Starter
Lively Member
[RESOLVED] [2008] Getting the path of the application
How I can make my application showing a msgbox of the path where my application is saved? I mean, how I can get it to tell me "ex. C:\Temp"?
-
Jan 26th, 2009, 01:10 PM
#2
Re: [2008] Getting the path of the application
-
Jan 26th, 2009, 01:22 PM
#3
Thread Starter
Lively Member
Re: [2008] Getting the path of the application
It was so simple, damn it I am so damn stupid. Thanks Atheist.
-
Jan 26th, 2009, 02:43 PM
#4
Re: [2008] Getting the path of the application
It only seems obvious/simple once you know 
Dont forget to mark this thread as resolved
-
Jan 27th, 2009, 10:34 AM
#5
Thread Starter
Lively Member
Re: [RESOLVED] [2008] Getting the path of the application
One more Question, How I can use it If I want to do this
Instead of using C:\Temp\file.exe using Application.StartUpPath & File.exe
How I can do that?
-
Jan 27th, 2009, 10:37 AM
#6
Re: [RESOLVED] [2008] Getting the path of the application
You can use IO.Path.Combine, like this
vb.net Code:
IO.Path.Combine(Application.StartUpPath, "File.exe")
-
Jan 27th, 2009, 10:41 AM
#7
Re: [RESOLVED] [2008] Getting the path of the application
In what context? Use Path.Combine to join two paths:
Code:
Dim path As String = System.IO.Path.Combine(Application.StartUpPath, "File.exe")
Edit: Aargh!
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
|