- Jun 6, 2020
- 11,559
- 4,422
Hi
I have a modified version of JRDC with a GUI to run on windows laptops. But I would like to package it as an exe.
The code below returns the file which is the same folder as the jar, which is ok when using a bat file but when packaged the config file needs to be put in the bin folder with the jar
B4X:
Is it possible to change this so that it will find the config file in the folder with the exe as below, so the config and other files can be put with the .exe rather than having to go in the bin folder.
Thanks
I have a modified version of JRDC with a GUI to run on windows laptops. But I would like to package it as an exe.
The code below returns the file which is the same folder as the jar, which is ok when using a bat file but when packaged the config file needs to be put in the bin folder with the jar
B4X:
Return File.ReadMap(File.DirApp, "config.properties")
Is it possible to change this so that it will find the config file in the folder with the exe as below, so the config and other files can be put with the .exe rather than having to go in the bin folder.
برای دیدن تصاویر باید ثبت نام کنید
Thanks
برای دیدن لینک ها باید ثبت نام کنید