Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Problem in RunOnceTrigger for Window Schedular(Urgent)

Posted on 2004-08-25
3
Medium Priority
?
328 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
[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
3 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 80 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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 …
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

610 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