Question : How to get application path in VB.NET ?

Hi,

I have an XML file in my application root directory. I want to read that file. The following commands gives me .../Bin/Debug also. But i do not need that.

System.Environment.CurrentDirectory()
Application.StartupPath()

If my application directory is this : "C:\Test", then i do not want "C:\Test\Bin\Debug". I do need only "C:\Test"

Can you  please provide me sample code ?

Thanks

Answer : How to get application path in VB.NET ?

TRy this

Application.StartupPath.replace("bin\Debug", "")
Random Solutions  
 
programming4us programming4us