查看单个帖子
旧 2009-04-21, 09:41 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 如何在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 于
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)