473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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
Nov 20 '05 #1
5 9163
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
I need to be able to detect two things inside my code app.path &
app.exename.

Nov 20 '05 #2
Hi,

Application.StartupPath and Application.ExecutablePath

Ken
----------------
"Christian Blackburn" <Christian@Damn@Sp**@Hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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

Nov 20 '05 #3
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

"Ken Tucker" <vb***@bellsouth.net> wrote in message
news:Og**************@tk2msftngp13.phx.gbl...
Hi,

Application.StartupPath and Application.ExecutablePath

Ken
----------------
"Christian Blackburn" <Christian@Damn@Sp**@Hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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


Nov 20 '05 #4
"Christian Blackburn" <Christian@Damn@Sp**@Hotmail.com> schrieb
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.

Nov 20 '05 #5
Hello,

"Christian Blackburn" <Christian@Damn@Sp**@Hotmail.com> schrieb:
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
///

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Alex Hunsley | last post by:
Pretty simple seeming question, but can't find answer via google or docs... I am using urllib2 as follows: handle = urlopen(req, postdata) # and URL to return a handle on ... print...
0
by: hsifelbmur | last post by:
does anyone know a product equivelant to MS SQL Server Reporting Services, but for MySQL or PostGreSQL?
2
by: Chris LaJoie | last post by:
I'm converting some APIs to C# and I'm wondering what the equivelant of a DWORD is. I'm thinking it's a uint, but I'm uncertiain. Can anyone confirm that? Chris
5
by: Torben S. Petersen | last post by:
Hi, I am currently trying to re-write some VC++ code into C# but are having problems finding a way to convert the C++ memcpy into C#. The following is part of the code: ...
2
by: ad | last post by:
There are InStr in VB What is the C# equivelant of the function InStr in VB? ---------------------------------------------------------------------------- ------------------ SearchString...
3
by: Ant | last post by:
Hi there, Is there an equivelant in C# to the VB: With controlName .property = X .Method End with Thanks very much in advance Ant
6
by: Washington | last post by:
Is possible to find where program is installed in the cases if path is changed during installation? Can you point me to specific information? If possible, real code sample. Thanks I appreciate...
15
by: Inny | last post by:
Hello, I found this simple js star rating script that I want to modify slightly. firstly I want to retain current vote , say 3 stars, untill its changed again. right now it resets to unvoted...
47
by: Nathan Sokalski | last post by:
VB.NET has a function, Asc(), that gets the Ascii value of a character. I am attempting to find an equivelant function for C#. Can somebody help me here? -- Nathan Sokalski njsokalski@hotmail.com...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.