I was wondering if there is a way to get the location of the project so I can run it on any computer.
e.g. so I can put something like: CurrentLocation + "FileName.txt";
thanks for any help




Posted 18 January 2012 - 01:42 PM
Posted 18 January 2012 - 01:49 PM
string appPath = Path.GetDirectoryName(Application.ExecutablePath);
Posted 19 January 2012 - 09:04 PM
tlhIn`toq, on 18 January 2012 - 01:49 PM, said:
string appPath = Path.GetDirectoryName(Application.ExecutablePath);
Posted 20 January 2012 - 10:11 AM
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
