Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Could not change task parameters programmtically!

03 Dec 2009   #1

winows xp
Could not change task parameters programmtically!


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.


My System SpecsSystem Spec
07 Dec 2009   #2

Windows 7/2008

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 System SpecsSystem Spec
12 Mar 2012   #3

seven pro 32bit
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.

My System SpecsSystem Spec

 Could not change task parameters programmtically!

Thread Tools

Similar help and support threads for2: Could not change task parameters programmtically!
Thread Forum
Task Scheduler error 2147944309 when I change task from Installation & Setup
How do you change search parameters? General Discussion
What's a Task Pane and why change it? Customization
how to change task bar font color Customization

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:36 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App