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
diip

winows xp
 
 
Could not change task parameters programmtically!

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 System SpecsSystem Spec
.

07 Dec 2009   #2
PolishPaul

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
bixy

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
Thread Forum
Can't change MC update scheduled task. How come
As everyone on here probably knows MC update has a default scheduled task to run at 3:00 am every night. I have tried to delete or disable the task but I cannot. I used the built-in Administrator account to delete the task yesterday afternoon but it was back this morning. How can I get rid of...
Media Center
Unable to change Service parameters remotely
Hey all, I'm trying to change a bunch of snmp parameters remotely and not having any luck. I can go into Computer Management, right-click and connect to the remote computer and open up the service but when I try to change something I get the following error: Failed to read a Registry key. This...
Performance & Maintenance
Task Scheduler error 2147944309 when I change task from
I have a simple task (cmd batch file). Whenever I try to change the settings I get a dialog box that reads as follows:"An error has occurred for task RemoteBk. Error message: The following error was reported: 2147944309". My computer is part of a domain.
Installation & Setup
How do you change search parameters?
Dell Intel Core 2 Duo Processor E7500 Computer Inspirion 545s 00 Windows 7 Home Premium 64-bit 6GB Memory 750GB Hard Drive How do I change the parameters for the SEARCH feature of Windows7 ot include a flash drive that I have in a USB hub? Thank you,
General Discussion
What's a Task Pane and why change it?
I've used other software from door2windows but even after reading the description I'm not sure what a "task pane" is and what will look different if I change it with this tool: Windows 7 Task Pane Changer : Change Windows 7 Task Pane With One Click | door2windows I'm just curious since I...
Customization
how to change volume icon in task bar?
how to change volume icon in task bar? or at least where to find it in system32...
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 17:19.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App