Microsoft
Software
Hardware
Network
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.Current
Directory(
)
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.re
place("bin
\Debug", "")
Random Solutions
sql server agent email job notification in sql server management studio
Windows 2003 Domain controller on a backup server Backup Exec 12.5
Dynamics CRM 4.0 Edit an active contract
Read/Write XML
mySQL - Selecting data from either of two tables with identical schema
MS Access Audit using Screen.ActiveControl.OldVa<wbr />lue
Vista Home Basic & Vista Business - IE8 not supported
Complex SQL Query
Dlookup with multiple criterias and tables
Unable to remove printer driver for HP LaserJet 1300 PCL 5e