![]() |
如何在net中得到项目所在的目录?
如何在net中得到项目所在的目录?
www.dimcax.com 如何在net中得到项目所在的目录? 如题。 system.reflection.module pathdll= system.reflection.assembly.getexecutingassembly().getmodules()[0]; string path = pathdll.fullyqualifiedname; path = path.substring(0, path.lastindexof("\\")); application.showalertdialog(system.io.directory.getcurrentdirectory()); 谢谢!这是dll文件所在的目录,如何方便地得到项目的根目录呢? application.startuppath 原帖由 www1970 于 |
| 所有的时间均为北京时间。 现在的时间是 03:08 AM. |