ICSAutomation
asked on
Get directory path
Hello
With
string paht = System.IO.Directory.GetCur rent Directory();
I get the Path: "D:\MyProjects\TestProject \UI\binDeb ug"
How can I get the Path "D:\MyProjects\TestProject " ? (is two levels higher)
With
string paht = System.IO.Directory.GetCur
I get the Path: "D:\MyProjects\TestProject
How can I get the Path "D:\MyProjects\TestProject
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use as it one line code...
first add
using System.IO;
string path = System.IO.Directory.GetPar ent(Direct ory.GetPar ent(Direct ory.GetCur rentDirect ory().ToSt ring()).To String()). ToString() ;
first add
using System.IO;
string path = System.IO.Directory.GetPar
When you deploy the application, it will contain the correct path.