几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(VB.NET/C#) (http://www.dimcax.com/hust/forumdisplay.php?f=176)
-   -   如何在net中得到项目所在的目录? (http://www.dimcax.com/hust/showthread.php?t=9501)

yang686526 2009-04-21 09:41 AM

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