Folder path before project
Posted
by
Annie Chua
on Stack Overflow
See other posts from Stack Overflow
or by Annie Chua
Published on 2014-08-20T09:47:06Z
Indexed on
2014/08/20
10:20 UTC
Read the original article
Hit count: 186
I am trying to get a folder path in my C drive that I did not want to hard code with my program.
I know that I can use string path = System.AppDomain.CurrentDomain.BaseDirectory;
However its give me : C:\FACE\Camera\Camera\bin\Debug
. Which I want to only have C:\FACE\
as I want to initialise something in the FACE folder but outside of my Camera folder. I do not wish to hardcode the file path. Is it possible to do it? Thanks for the help!
© Stack Overflow or respective owner