在我的WinForm应用程序,我需要像目录路径
"D:\NEWD\WIN_NEW\Sales\Report\Report2.rdlc"
的路径,但我只有"Sales\Report\Report2.rdlc"
事情是DAT我无法预测此路径D:\NEWD\WIN_NEW
但是当我使用
Directory.GetCurrentDirectory() + "\\Sales\\Report\\Report2.rdlc";
该路径包含我的bin\debug
目录。我如何获得所需的路径?
你需要提供更多的信息,没有办法猜测任何可能是任何东西的路径 –
很难理解这个问题。当您将程序移动到目录D:\ NEWD \ WIN_NEW时,它将起作用。如果你不这样做,为什么你不能只使用“D:\ NEWD \ WIN_NEW \ Sales \ Report \ Report2.rdlc”作为路径? – PythEch