Close Applcation At Midnight

Post Reply
floebel
Posts: 4
Joined: Mon Aug 27, 2012 1:34 am

Close Applcation At Midnight

Post by floebel »

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
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: Close Applcation At Midnight

Post by mosh1 »

May you can use TIMER?
Franklin Demont
Posts: 166
Joined: Wed Aug 29, 2012 8:25 am

Re: Close Applcation At Midnight

Post by Franklin Demont »

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
Post Reply