Rajesh Karunakaran
Programmer
In my application with UI, I have a timer. It checks, if the hour of time is 9, 10, 11... and so on and if matches, ie at each hour, process something and upload to an Ftp.
If I run this in pc as usual the UI displays and the timer correctly does the process at each hour.
When I set a Task in Windows Task Scheduler, to start when the PC starts, it shows 'Running' and I can see it in the Task Manager. However, it doesn't do the process and upload.
Earlier, I had the Timer1.Enabled = .T. in the form's Activate. Then I shifted it to the Init method thinking maybe in Task Scheduler, it doesnt get activated as there's no UI. But still, it doesn't run the process code.
The Timer is added onto the form by control drag/drop. Should I add it programmatically? Will that solve the problem?
Anyone has any idea?
If I run this in pc as usual the UI displays and the timer correctly does the process at each hour.
When I set a Task in Windows Task Scheduler, to start when the PC starts, it shows 'Running' and I can see it in the Task Manager. However, it doesn't do the process and upload.
Earlier, I had the Timer1.Enabled = .T. in the form's Activate. Then I shifted it to the Init method thinking maybe in Task Scheduler, it doesnt get activated as there's no UI. But still, it doesn't run the process code.
The Timer is added onto the form by control drag/drop. Should I add it programmatically? Will that solve the problem?
Anyone has any idea?