Solved

Task Scheduler API error

Posted on 2014-02-19
2
604 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 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…
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.

829 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