2010-08-02 66 views

回答

8
string dir = System.IO.Path.GetDirectoryName(myPath); 
3
string fullFilename= @"C:\Users\TestProject\TestProject.csproj"; 

string folder = Path.GetDirectoryName(fullFilename);