VB6,code,shows,your,applications,pathapppath,
Quick Search for:  in language:    
VB6,code,shows,your,applications,pathapppath,
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
Categories Search Newest Code Coding Contest Code of the Day Ask A Pro Jobs Upload
.Net Stats

 Code: 52,895 lines
 Jobs: 130 postings

 
Sponsored by:

 

You are in:

 

Welcome New User
Logout




Latest Code Ticker for .Net.
Host
By Simon Svensson on 10/18


Click here to see a screenshot of this code!Net Send
By Chris Wise on 10/18

(Screen Shot)

LZW Compression
By Asgeir Bjarni Ingvarsson on 10/18


Click here to see a screenshot of this code!MS Office Xp Style Menus-- From CoolMenus--Owne r Drawn Menus
By Derrick Blake on 10/18

(Screen Shot)

Click here to see a screenshot of this code!Cool Owner Drawn Menus
By Derrick Blake on 10/17

(Screen Shot)

Socket Component based on Winsock, TCP/IP and client/server communication
By Daniel Bruno on 10/17


Click here to see a screenshot of this code!SQL Database example with ASP.NET, ADO.NET en C#
By KeN@N on 10/17

(Screen Shot)

Click here to see a screenshot of this code!The One-Click Doctor 1.0
By MacKenzie Healy on 10/16

(Screen Shot)

Click here to see a screenshot of this code!Download HTML page
By Janus Kamp Hansen on 10/16

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Application Path

Print
Email
 
VB icon
Submitted on: 2/7/2002 9:56:44 PM
By: Gene Averett 
Level: Beginner
User Rating: By 4 Users
Compatibility:VB.NET

Users have accessed this code 2779 times.
 
author picture
(About the author)
 
     This code shows how to get your applications path(app.path) just like in VB6.
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

    //**************************************
    //     
    // Name: Application Path
    // Description:This code shows how to ge
    //     t your applications path(app.path) just 
    //     like in VB6.
    // By: Gene Averett
    //
    //This code is copyrighted and has
    // limited warranties.Please see http://
    //     www.Planet-Source-Code.com/xq/ASP/txtCod
    //     eId.1/lngWId.10/qx/vb/scripts/ShowCode.h
    //     tm
    //for details.
    //**************************************
    //     
    
    Public Apath As String = System.Environment.CurrentDirectory
    'example:
    FileCopy(Apath & ".\images\Yellow.jpg", ofile1 & "Yellow.jpg")


Other 2 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
2/9/2002 12:15:07 AM:Pankaj Nagar
Hi Gene,
Please Note at a given time 
current directory and Application Path 
can be different...???? Like current 
directory can be c:\windows while 
app.path can be c:\MyApp Please check 
it. 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/9/2002 7:51:46 AM:sauron
Cool code. You can get the path with 
this as well 
:
Application.StartupPath()
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/1/2002 8:06:16 PM:Kitten Domain
are you able to come up with passwords 
for 1 email  mym60@hotmail.com if so 
thanks
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/12/2002 8:00:10 PM:Ramon E. Tristani
The correct way to do this 
is:
Application.StartupPath()
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Email: mcse2006@hotmail.com
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | .Net Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.