I use this code for finding the debug directory
public string str_directory = Environment.CurrentDirectory.ToString();
"C:\Users\Masoud\Documents\Visual Studio 2008\Projects\MyProj\MyProj\bin\Debug"
How can I find the parent folder as shown below?
"C:\Users\Masoud\Documents\Visual Studio 2008\Projects\MyProj\MyProj"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…