Rakzin Roman Asked:2020-07-04 04:49:36 +0000 UTC2020-07-04 04:49:36 +0000 UTC 2020-07-04 04:49:36 +0000 UTC 如何获取正在运行的应用程序上方两个文件夹的路径? 772 有一个包含 exe 文件的文件夹,例如,我通过 -Directory.GetCurrentDirectory() 获得该文件。 我怎样才能得到这个文件上面两个文件夹的链接? c# 1 个回答 Voted Best Answer arrowd 2020-07-04T04:58:34Z2020-07-04T04:58:34Z 使用Path.GetFullPath: Path.GetFullPath(Directory.GetCurrentDirectory() + "\\..\\..\\");
使用Path.GetFullPath: