Waqas Ali

Waqas Ali

  • NA
  • 19
  • 27.7k

What is "App.path" in C#.net ?

Jul 20 2012 6:41 AM
Hello, I'm learning ado.net in C#.
I have a  VB6 background so I wanted to ask you that if I want to change the location of my program and still access it how do i do that ?
In VB6 we used to have App.path.
What is it in C# ?

con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=F:/DVDLogger/dvdLog.accdb";

Where in my code do I put the App.path replacement for c# ? 

Answers (5)