PC Review


Reply
Thread Tools Rate Thread

Any "app.Path" function in dotnet

 
 
awan
Guest
Posts: n/a
 
      19th Feb 2004
Is there a function in dotnet which is equivalent as "app.Path" in VB 6?

Thanks in advance!


 
Reply With Quote
 
 
 
 
William Ryan eMVP
Guest
Posts: n/a
 
      19th Feb 2004
MessageBox.Show(Application.ExecutablePath)

"awan" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Is there a function in dotnet which is equivalent as "app.Path" in VB 6?
>
> Thanks in advance!
>
>



 
Reply With Quote
 
awan
Guest
Posts: n/a
 
      19th Feb 2004
I can only make it work in vb executable. How can I make it work in
class/dll project? Thanks again.

"William Ryan eMVP" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> MessageBox.Show(Application.ExecutablePath)
>
> "awan" <(E-Mail Removed)> wrote in message
> news:#(E-Mail Removed)...
> > Is there a function in dotnet which is equivalent as "app.Path" in VB 6?
> >
> > Thanks in advance!
> >
> >

>
>



 
Reply With Quote
 
Klaus H. Probst
Guest
Posts: n/a
 
      20th Feb 2004
Assembly.GetExecutingAssembly().Location

or

Assembly.GetExecutingAssembly().Codebase


--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"awan" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I can only make it work in vb executable. How can I make it work in
> class/dll project? Thanks again.
>
> "William Ryan eMVP" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > MessageBox.Show(Application.ExecutablePath)
> >
> > "awan" <(E-Mail Removed)> wrote in message
> > news:#(E-Mail Removed)...
> > > Is there a function in dotnet which is equivalent as "app.Path" in VB

6?
> > >
> > > Thanks in advance!
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Coult not find specified object" and "Path-File access error" messages Robert Crandal Microsoft Excel Programming 2 19th Dec 2009 09:12 PM
helper function - full app path ("~/") SpaceMarine Microsoft ASP .NET 9 17th Mar 2009 06:03 PM
Is "www2" a sort of reserved word for path of web projects ? ("Publish website" failing without errors) craigkenisston@hotmail.com Microsoft ASP .NET 1 19th Jan 2007 09:11 PM
<forms name="CompanyWeb" loginUrl="login.aspx" protection="All" path="/" /> Murphy Microsoft ASP .NET 2 19th Apr 2004 08:01 AM
ASP.NET "Get path strPath = Session("Path").ToString()" =?Utf-8?B?R0M=?= Microsoft ASP .NET 4 13th Mar 2004 03:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:20 PM.