當(dāng)前目錄
stringpath= Environment.CurrentDirectory;
上級(jí)目錄
string path = new DirectoryInfo("../").FullName;
上上級(jí)目錄
string path = new DirectoryInfo("../../").FullName;
當(dāng)前目錄
stringpath= Environment.CurrentDirectory;
上級(jí)目錄
string path = new DirectoryInfo("../").FullName;
上上級(jí)目錄
string path = new DirectoryInfo("../../").FullName;