FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Exit to run routine
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Exit to run routine
Posted: Fri Mar 10, 2006 07:05 PM

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
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 101
Joined: Mon Oct 10, 2005 06:48 PM
Exit to run routine
Posted: Fri Mar 10, 2006 09:14 PM

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

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
I need to automate more ...
Posted: Fri Mar 10, 2006 10:36 PM

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
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Exit to run routine
Posted: Fri Mar 10, 2006 11:19 PM

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

Continue the discussion