How to run another program and exit main window?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
mol
Posts: 3774
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

How to run another program and exit main window?

Post by mol »

Hi all!
I wanna write procedure, that will run update from internet.
I wanna run eg. SETUP.EXE and exit main program (eg. myprog.exe) without waiting for ending SETUP.exe to release locks of myprog.exe.

Do anybody know how to do it?

best regards, Marek
User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines

Re: How to run another program and exit main window?

Post by dhaine_adp »

I wanna write procedure, that will run update from internet.
I wanna run eg. SETUP.EXE and exit main program (eg. myprog.exe) without waiting for ending SETUP.exe to release locks of myprog.exe.
Hi Mol,

I never tried to write one for my self but we know that in HMG we use to have one Main Window. So to facilitate running another program and terminates another as in your example, SETUP.EXE and exit MYPROG.EXE, I think you should write them separately. Then from MYPROG.EXE use EXECUTE FILE "SETUP.EXE" and then use <Window>.Release command to terminate MYPROG.EXE. Since SETUP.EXE is external to MYPROG.EXE closing it would not affect SETUP.EXE.

I hope that helps...


Regards,

Danny
Regards,

Danny
Manila, Philippines
User avatar
mol
Posts: 3774
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: How to run another program and exit main window?

Post by mol »

Many thanks Danny, it really works!
I didn't know the "execute file...", I've tried "run ....", but "run ..." causes main program to wait for terminating called program...

Best regards, Marek
Post Reply