Solved

Task Scheduler API error

Posted on 2014-02-19
2
581 Views
Last Modified: 2014-03-19
Hello Experts
I am getting an error " 0x80041318 : The task XML contains a value which is incorrectly formatted or out of range "  while registering a task in RegisterTaskDefinition(..)  method attached the code snippet.

Getting error when  I used the code pTimeTrigger->put_StartBoundary( _bstr_t(wTime));

When I had code the time values like  pTimeTrigger->put_StartBoundary( _bstr_t(L"2014-02-18T15:46:00") ); error is not getting  

Please advise how to use the time format

Thanks in advance.
0
Comment
Question by:HarishMinu
2 Comments
 
LVL 20

Accepted Solution

by:
ltlbearand3 earned 500 total points
ID: 39893616
Please post a copy of your code snippet.  You can also check out an article I wrote about code for the task schedule to see if that helps - VBScript and Task Scheduler 2.0
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now