General information
Category:
Third party products
>Hi all
>
>I have a utility that I want to run only once per day, irrespective of the number of times my computer reboots. Is there any way to wrap this utility via VFP and put in the startup so that VFP warpper runs it only once the way I want it.
>
>Or is there a simple registry trick to do the same.
>
>It is a third party util and is currently run from the Startup menu.
>
>Please advise.
You could store the last run date in the registry, dbf, or ini file Your vfp app would always start up, but would quickly shut down if it has already been run.
#retreive last run date from registry or ini file
ldLastRunDate = GetLastRunDate(lcMyAppName)
if ldLastRunDate< date()
= StoreLastRunDate(lcMyAppName, date())
run &lcMyAppName
else
return
endif
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only