Close Applcation At Midnight

Close Applcation At Midnight

Postby floebel » Mon Aug 27, 2012 8:42 pm

I want to do database maintenance after midnight. Is there a way to close all harbour applications still running at midnight? What would the source code look like?

Thanks
Fulton Loebel
floebel
 
Posts: 4
Joined: Mon Aug 27, 2012 1:34 am

Re: Close Applcation At Midnight

Postby mosh1 » Tue Aug 28, 2012 7:41 pm

May you can use TIMER?
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: Close Applcation At Midnight

Postby Franklin Demont » Thu Aug 30, 2012 1:21 pm

I use :

DEFINE TIMER oOut INTERVAL 59*60000 OF oWnd ;
ACTION iif( LEFT(Time(),2)=="00" , ( set(_SET_ERRORLOG ,"Autoclose.log") , tracelog( DTOC(Date()) + " , Programma closed , user " + UPPER(NetName(.T.)) ) , oWnd:END() ) , )


Frank
test
Franklin Demont
 
Posts: 166
Joined: Wed Aug 29, 2012 8:25 am


Return to FiveWin for Harbour/xHarbour

Who is online

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