Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Zer0 on October 03, 2006, 12:20 PM

Title: Finding folder path
Post by: Zer0 on October 03, 2006, 12:20 PM
Iv been looking around and i dont seem to be able to find much info on this, how do u have VB find the path to the folder the program is in?
Title: Re: Finding folder path
Post by: l2k-Shadow on October 03, 2006, 02:22 PM
lol

App.Path
Title: Re: Finding folder path
Post by: Zer0 on October 03, 2006, 04:08 PM
well that didnt work for me so i did a little more research and found somthn that did heres the code:


Public Function App_Path() As String
        Return System.AppDomain.CurrentDomain.BaseDirectory()
End Function
Title: Re: Finding folder path
Post by: rabbit on October 03, 2006, 04:16 PM
You should have said VB.Net
Title: Re: Finding folder path
Post by: l2k-Shadow on October 03, 2006, 05:27 PM
Quote from: rabbit on October 03, 2006, 04:16 PM
You should have said VB.Net

yeah specify that in the future, this is the visual basic forum, not the .NET forum, so while it's fine to post VB.NET stuff here, if you don't specify, people will assume you're talking VB 6.
Title: Re: Finding folder path
Post by: Zer0 on October 03, 2006, 11:45 PM
ya sorry about that guys i ment to post it in the .Net forum