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!

Hi,

I have a peculiar issue with task scheduler in Windows 7. 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 System SpecsSystem Spec
.

07 Dec 2009   #2

Windows 7/2008
 
 

ITask::SetParameters Method (Windows)

looking at the documentation, it mentions:
Quote:
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.

Thanx
My System SpecsSystem Spec
.


Reply

 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
Small Task bar change I'd like Customization
Scripting to change parameters Installation & Setup

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 11:37 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33