• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 653
  • Last Modified:

Task Scheduler API error

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
HarishMinu
Asked:
HarishMinu
1 Solution
 
ltlbearand3Commented:
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now