Could not change task parameters programmtically!

diip

New member
Local time
2:29 AM
Messages
1
Hi,

I have a peculiar issue with task scheduler in win7. I have programatically added a task specifying certain parameters ( set the parameters using ITask::SetParameters ()). Then I modified the parameters again with new value.When I changed the parameters using ITask::SetParameters (), It returns S_OK, I save it using IPersistFile::Save(). It is also returning S_OK.

But, when I open 'Task Scheduler', I see the task is still holding the old parameters!!.

I am confused with this behavior. This problem does not happen with Windows XP.

Need your help.


Diip
 

My Computer

OS
winows xp
ITask::SetParameters Method (Windows)

looking at the documentation, it mentions:
To clear the command-line parameter property, set pwszParameters to L"".
is there a typo there? Anyway, do you need to clear the params first? Perhaps you can clear them, then check - if not... i'm thinking permissions issue on file write?... but it returns S_OK... hmm...
 

My Computer

Computer Manufacturer/Model Number
Lenovo T61
OS
Windows 7/2008
CPU
core2duo 2.0
Motherboard
Mobile Intel 965 chipset
Memory
4GB
Graphics Card(s)
Nvidia Quadro NVS140M
Hard Drives
WD3200BEKT (7200rpm)
find solution ?

Hi, did you find a solution ?

I'm in the same case. If i create a task from the task scheduler API 1.0, the task exists and works but doesn't appear in the task scheduler control panel.

Thanx
 

My Computer

OS
seven pro 32bit
Back
Top