Page 1 of 1
Exit to run routine
Posted: Fri Mar 10, 2006 7:05 pm
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
Posted: Fri Mar 10, 2006 9:14 pm
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
I need to automate more ...
Posted: Fri Mar 10, 2006 10:36 pm
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
Posted: Fri Mar 10, 2006 11:19 pm
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.