What's the equivelant to app.path & app.exename

  • Thread starter Christian Blackburn
  • Start date
C

Christian Blackburn

Hi Gang,
I need to be able to detect two things inside my code app.path &
app.exename. How can do that?
Thanks,
Christian Blackburn
 
C

Cor

Hi Christian,
I don't understand your question totaly.
Do you want to refer to or find the path and filename of a program on disk?
Or do a search on a string name or something or something else?
Cor
 
C

Christian Blackburn

Hi Ken and Cor,
Thanks for the info Ken. Cor Ken knew what I was asking, because I used VB6
syntax.
Thank you both,
Christian
 
A

Armin Zingler

Christian Blackburn said:
Hi Gang,
I need to be able to detect two things inside my code app.path &
app.exename. How can do that?
Thanks,
Christian Blackburn

In addition to the previous answers:

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB/vbcon/html/vxconChangesToAppO
bjectInVisualBasicNET.htm

(see hints in signature)



--
Armin

- Links might be split into two lines. Concatenate them using notepad.
- Links might require to add a ".nnnn" after the "2003FEB", e.g.
"2003FEB.1033" for localized versions.
- Links starting with "ms-help" are URLs for the document explorer (<F1>).
Paste them in the URL textbox and press enter. Using internal help (menu
tools -> options -> environment -> help), display the "Web" toolbar that
contains the textbox.
 
H

Herfried K. Wagner [MVP]

Hello,

Christian Blackburn said:
I need to be able to detect two things inside my code app.path &
app.exename. How can do that?

'Application.ExecutablePath' and:

\\\
Imports System.IO
Imports System.Reflection
..
..
..
Private Function ApplicationPath() As String
Return _

Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location)
End Function
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top