阅读背景:

在。net中获得执行exe路径的最佳方法是什么?

来源:互联网 

From program a.exe located in c:/dir I need to open text file c:/dir/text.txt. I don't know where a.exe could be located, but text.txt will always be in the same path. How to get the name of the currently executing assembly from within to program itself so that i can access the text file?From program a.exe located in c:/dir I need to




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: