I have a Xailer TaskScheduler program that is very successful and I am trying converting it to run as a service.
All is going well and it appears to run as a service 95% OK, except for my Timer function when it wants to actually execute the task .... calling my RunNow() method.
My problem is how to run the required .exe from within my program running as a service.
The 'non service' code that works fine is this
METHOD RunNow() Class ScheduledTask
Execute( ::cFile, FilePath( ::cFile ) )
RETURN( self )
This would work fine with ::cFile = "c:\windows\system32\notepad.exe" ..... notepad pops up on the PC main window in the usual way.
Problem is it appears to not do anything visible when executed from a service.
So question is :
1. Can I execute a program from a Xailer service program to appear on the PC main window ... I really hope so!
2. What is the function to do this, possibly ShellExecute or ????
Any help would be appreciated.