Solved

Problem in RunOnceTrigger for Window Schedular(Urgent)

Posted on 2004-08-25
3
281 Views
Last Modified: 2008-03-03
Hi,
i am having problem in
        task1.Triggers.Add(New RunOnceTrigger(DateTime.Now + TimeSpan.FromMinutes(1.0)))
in VB.NET it is not allowing me to use ' + ',& if i specify only  'DateTime.Now' then the exe is not executed at that particular time.
Plz tell me what to do....Its very urgent.
Waiting for positive respones.

Regards,
Trupti
0
Comment
Question by:truptiph
3 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 20 total points
ID: 11899609
If you are trying to get a DateTime that is 1 minute out from the current time it is simply this:

    task1.Triggers.Add(New RunOnceTrigger(DateTime.Now().AddMinutes(1)))

Idle_Mind
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 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

18 Experts available now in Live!

Get 1:1 Help Now