[dba-VB] C# get project directory

jwcolby jwcolby at colbyconsulting.com
Mon Sep 21 08:42:13 CDT 2009


I want to set up a directory to store files directly under the project directory.  I can get the exe 
directory using Application.ExecutablePath but that is clear down in the bin directory etc.

I want THIS path:

E:\C# Projects\Grade Calculator	<<<<<

I have Googled till I am blue in the face and all I end up with is (where the exe is):

D:\C# Project\Grade Calculator\Grade Calculator\bin\Debug

Any help appreciated.

Thanks,

-- 
John W. Colby
www.ColbyConsulting.com



More information about the dba-VB mailing list