Page 1 of 1

Task Update Bug

Posted: Wed Jul 12, 2006 3:08 pm
by mimarsinan
When I try to use it to update a scheduled task, it does not work. What I am trying to do is exactly this: just change the EXE that my scheduled task points to. Nothing else. I am not intending to change any other property of the scheduled task, only the EXE.

This works with the native Windows Task Scheduler interface. It does not work with your own example program, when I just change the EXE. I get an error "could not start" when I attempt to start the updated task.

Please let me know how I can update just the EXE of a scheduled task.

Posted: Thu Jul 13, 2006 8:31 pm
by Haron
Please wait a few days. This is certainly bug.

Posted: Mon Jul 17, 2006 4:48 pm
by isiticov
Hi Sinan,

Yes, unfortunately, it looks like again a Windows issue. To fix this you will just need to call SetAccountInformation() method with appropriate data for the Task Item and set again the account information after changing the EXE path. Then it will work.