如何在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 于