Solved

Task Scheduler API error

Posted on 2014-02-19
2
617 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

739 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