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

  • Thread starter Thread starter Christian Blackburn
  • Start date 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
 
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
 
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
 
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.
 
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
///
 
Back
Top