B4X FEED [Solved] Change path to config file when exe is created with Integrated B4JPackager11

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: [Solved] Change path to config file when exe is created with Integrated B4JPackager11 است. این موضوع تا کنون 49 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع [Solved] Change path to config file when exe is created with Integrated B4JPackager11
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
49
پسندها
0
آخرین ارسال توسط PracticalSoft
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:

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

 

عقب
بالا