Get FileDescription (ProgramName) from .exe

亡梦爱人 提交于 2019-12-03 20:32:46

I am not aware of such API in Java. However, what you can do is as follows:

  1. Create a C# project with the required method that returns program name.
  2. Export this project to DLL.
  3. In your java code you can use JNI to call the native code from you DLL project. You can check these examples: SUN JNI Example , Making Native Windows API calls from within a Java Application

(I would suggest you to consider whether you absolutely need this description.) Good luck!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!