Exit to run routine

Post Reply
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Exit to run routine

Post by TimStone »

When checking for an update, many programs will shut down, run the update, and start up again.

Does anyone have a sample of how to do this with xHarbour / FWH ?

Tim :lol:
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
ramirezosvaldo
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua
Contact:

Post by ramirezosvaldo »

Hello Tim Stone


I am using a bach file for that job.

For my Xbase++ POS system

1.- My bach file, ever run a pkunzip a update file
2.- Run my POS
3.- My POS update the files, that was compressed.

---

If the POS, see via FTP a new update for the store ..

1.- It download the update file.
2.- Notify to the user, that Need to restart the computer.

Goto 1

HTH

Regards
Osvaldo Ramirez
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

I need to automate more ...

Post by TimStone »

I understand what you are doing and I do something similar. However, what I want to do is have my program close ( not a problem ) but then execute an operation upon closing which performs the updating, and then restart with the new version of the program.

This is very common with many programs so there must be a rather simple method.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Tim,

I guess that you may use a batch file (BAT) or execute another application from your main app, and then end the main one and let the invoked one run.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply