MrDontKnowNothing
Programmer
hello everyone,
i do have a litle *.prg, wich i want to run as a service in windows. therefore i need some mechanismn, that controls that service, so that it runs only once a day.
my idea: when it runs as *.exe, i need to check the system clock periodically. does anybody know how to do that? shall i use sleep within a loop?
e.g.:
DECLARE Sleep IN Win32API INTEGER
do while (.t.)
if time() == 'hh:mm:ss'
? 'hello'
enddo
sleep(30000)
enddo
gracias!
alex
i do have a litle *.prg, wich i want to run as a service in windows. therefore i need some mechanismn, that controls that service, so that it runs only once a day.
my idea: when it runs as *.exe, i need to check the system clock periodically. does anybody know how to do that? shall i use sleep within a loop?
e.g.:
DECLARE Sleep IN Win32API INTEGER
do while (.t.)
if time() == 'hh:mm:ss'
? 'hello'
enddo
sleep(30000)
enddo
gracias!
alex