Exit to run routine

Exit to run routine

Postby TimStone » Fri Mar 10, 2006 7: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
User avatar
TimStone
 
Posts: 2909
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby ramirezosvaldo » Fri Mar 10, 2006 9: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
ramirezosvaldo
 
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua

I need to automate more ...

Postby TimStone » 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
User avatar
TimStone
 
Posts: 2909
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41469
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 149 guests