I would agree with Ted. Visual FoxPro is not the best choice for a service EXE as it is hard to make one that doesn't present any UI, and you can't build one natively. Also if there is scheduling involved then you are re-inventing the scheduling wheel too. .NET can create services easily, however for any sort of complex scheduling you're looking at a library called Quartz.NET. As Ted says, do a VFP exe that does what you want once, then exits. Then use the power of the Windows scheduler to run it as needed. There is no real need for this to be a service, or TSR as they used to be called in the olden days.
I've had issues with this in Win 7; a modeless top-level form used to display a "pop-up" message won't appear on the desktop, or execute a "bell" sound (?? CHR(7)) if the user has something else open. It only silently puts up a button on the taskbar. This does not get the user's attention. Worked fine in XP.
Is there a way to get such a VFP pop-up to take precedence instead of opening minimized in Win 7?
Also, I've had issues with the Windows Scheduler in Win 7 for restricted users. Apparently Windows Scheduler needs an administrator account to actually execute some things. Someone else mentioned that UAC had to be turned off. Can anyone elaborate on this point?
Thanks. Ken Dibble www.stic-cil.org _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/FA.5E.08470.7B31EC55@cdptpa-oedge01 ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

