473,503 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Any "app.Path" function in dotnet

Is there a function in dotnet which is equivalent as "app.Path" in VB 6?

Thanks in advance!
Jul 21 '05 #1
3 2259
MessageBox.Show(Application.ExecutablePath)

"awan" <af****@hotmail.com> wrote in message
news:#V**************@tk2msftngp13.phx.gbl...
Is there a function in dotnet which is equivalent as "app.Path" in VB 6?

Thanks in advance!

Jul 21 '05 #2
I can only make it work in vb executable. How can I make it work in
class/dll project? Thanks again.

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:uq**************@TK2MSFTNGP09.phx.gbl...
MessageBox.Show(Application.ExecutablePath)

"awan" <af****@hotmail.com> wrote in message
news:#V**************@tk2msftngp13.phx.gbl...
Is there a function in dotnet which is equivalent as "app.Path" in VB 6?

Thanks in advance!


Jul 21 '05 #3
Assembly.GetExecutingAssembly().Location

or

Assembly.GetExecutingAssembly().Codebase
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"awan" <af****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I can only make it work in vb executable. How can I make it work in
class/dll project? Thanks again.

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:uq**************@TK2MSFTNGP09.phx.gbl...
MessageBox.Show(Application.ExecutablePath)

"awan" <af****@hotmail.com> wrote in message
news:#V**************@tk2msftngp13.phx.gbl...
Is there a function in dotnet which is equivalent as "app.Path" in VB 6?
Thanks in advance!



Jul 21 '05 #4

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

Similar topics

10
2161
by: Alpha | last post by:
I use FolderBrowserDlg for user to select a folder path then store it in the sql table. I then retrieve it to concatenate in a sqlcommand text to retrive files from that directory but it won't...
8
3485
by: Bern McCarty | last post by:
Is it at all possible to leverage mixed-mode assemblies from AppDomains other than the default AppDomain? Is there any means at all of doing this? Mixed-mode is incredibly convenient, but if I...
1
5393
by: Steve Grahovac | last post by:
I have been having trouble the last few days opening any ASP.NET web forms in the design view in the designer. Every time I clicked on an aspx file I got a message box with the error "Unable to...
9
13663
by: Clinton Frankland | last post by:
Hi, On a Windows 2000 Server when attempting to use System.IO.Directory.CreateDirectory(string.concat(Server.MapPath(""), "\verify")) I receive a System.IO.DirectoryNotFoundException error:...
4
6071
by: Mike | last post by:
Hi, I use some old application that need "short path" - previous dos style. For example , I need to convert "C:\MyLongPath\1.txt" to "c:\mylong~1\1.txt". Does exist any classes at vb.net for...
3
330
by: awan | last post by:
Is there a function in dotnet which is equivalent as "app.Path" in VB 6? Thanks in advance!
2
1321
by: Rocky Clark | last post by:
Now please be gentle. I have been a Microsoft developer for many years and used everything from VB 3.0 to Visual Studio 6.0 from their inception. I am now attempting to switch to .net. I had no...
3
15760
by: Eckhard Schwabe | last post by:
I only found one post on Google where someone mentions the same problem with a DataSet: XmlDataReader in .Net 1.1 can not read XML files from a path which contains "%10" or "%3f". code to...
9
4002
by: larrybud2002 | last post by:
I've read about this error in this group and others from early 2006 but without any resolution, so I thought I'd bump it up to see if there's a solution. Trying to build a website on ...
0
7205
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
7093
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
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7349
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...
1
7008
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
4688
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
399
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.