B4J Question B4j exe file created work in background

mauriegio

Member
Licensed User
Longtime User
Hello at all,

when i create exe file with B4j create package standalone, when i run it
from a command prompt exit immediatly and continue work in background,
but i need to wait until finish, because it must create a file and after i need
to elaborate it.

How i can do it ?

Thank you very much
Maurizio
 

teddybear

Well-Known Member
Licensed User
There is a run_debug.bat, you can run it and read log.
 
Upvote 0

Magma

Expert
Licensed User
Longtime User
Hello at all,

when i create exe file with B4j create package standalone, when i run it
from a command prompt exit immediatly and continue work in background,
but i need to wait until finish, because it must create a file and after i need
to elaborate it.

How i can do it ?

Thank you very much
Maurizio
so... wait... for (mean Wait For (j) JobDone)
 
Upvote 0

mauriegio

Member
Licensed User
Longtime User
hello thanks for help,

but maybe i not expalined well, the program work but in backgrounf
and i don't want so, i need to now when the exe finish for eleborate
the file created.

thank
Maurizio
 
Upvote 0

teddybear

Well-Known Member
Licensed User
Hello at all,

when i create exe file with B4j create package standalone, when i run it
from a command prompt exit immediatly and continue work in background,
but i need to wait until finish, because it must create a file and after i need
to elaborate it.
How do you run it from a command prompt exit immediatly?
You meant that in cmd window? you run it then exit the cmd window?
 
Last edited:
Upvote 0

teddybear

Well-Known Member
Licensed User
1.Is your exe a non-ui app?
2.What is run it and exit immediatly? do you describle how to do ?
3. How do you know it is working in backgroud?
4.Do you add log to your app for debugging?
 
Upvote 0

mauriegio

Member
Licensed User
Longtime User
1.Is your exe a non-ui app?
2.What is run it and exit immediatly? do you describle how to do ?
3. How do you know it is working in backgroud?
4.Do you add log to your app for debugging?
1 No have ui
2 yes
3 because the file is created after 4/5 minutes
4 no
thank for help
 
Upvote 0

mauriegio

Member
Licensed User
Longtime User
...can i add a question...?

is your app into a batch file, it runs before a process and then another one start immediately ?
No
i lunch from a command promp but exit and continue to work i see the counter on ui to increment.

thank you
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
i lunch from a command promp but exit and continue to work i see the counter on ui to increment
then you need to wait for the app to finish from commandline. if the exitcode is 0 then you can continue to work. if not then check the error-code.
-> Google

Hard to help more based on the spare infos you provided.
 
Upvote 0

teddybear

Well-Known Member
Licensed User
There is a run_debug.bat, you can run it and read log.
As I said at post#2, there is a run_debug.bat in the folder, you can edit it. after your app is done, continue to execute the command you specified.
 
Upvote 0

Magma

Expert
Licensed User
Longtime User
because the file is created after 4/5 minutes
...are you calling from your app any other "app", "program" that creates that "file" ?

if "yes" you must wait this app end.. and then end your app... i can't think anything more... the info you shared is limited as DonManfred said.
 
Upvote 0

mauriegio

Member
Licensed User
Longtime User
then you need to wait for the app to finish from commandline. if the exitcode is 0 then you can continue to work. if not then check the error-code.
-> Google

Hard to help more based on the spare infos you provided.
Thanks, yes but the app continue working but the command exit immediatly and work in background.

the question is how i can lunch the app and wait the finish work!!!

thanks
 
Upvote 0

mauriegio

Member
Licensed User
Longtime User
...are you calling from your app any other "app", "program" that creates that "file" ?

if "yes" you must wait this app end.. and then end your app... i can't think anything more... the info you shared is limited as DonManfred said.
No i lunch manually from a command promp to try, but exit immediatly no error and i se the ui working and the file created
after some minutes.

thanks
 
Upvote 0
Top