Solved

set program start by itself at midnight

Posted on 2014-04-28
3
469 Views
Last Modified: 2014-04-29
I would want to sent my program start and run by itself at midnight everyday. I am using VB.NET

Thank you

Anthony
0
Comment
Question by:Anthony Matovu
3 Comments
 
LVL 7

Assisted Solution

by:Utkarsh Kulkarni
Utkarsh Kulkarni earned 167 total points
ID: 40026975
You can create a schedule task for the same. If its an exe file you can directly set the scheduler in Windows.
If it a web application (URL) then you need to write 4 lines VB script & then create schedule to execute this script(which run that URL / Page...e.g. http://www.xxxxx.xxx/schedule/once-a-day.aspx).

Ref for Windows 7 is Schedule a Program
0
 
LVL 8

Assisted Solution

by:Ganapathi
Ganapathi earned 166 total points
ID: 40026978
Create a Setup from your application.

Install it in the system.

Use "Task Scheduler" tool in your machine to Start the program. You can also pass the parameters while scheduling.

Let me know if you need a reference link.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 167 total points
ID: 40026987
When I need to build that kind of application, I always create a Windows form application that can process some tasks and close itself when done. This application is then triggered by a task in the Tasks Scheduler of Windows.

More details on my app at http://emoreau.com/Entries/Articles/2008/11/Passing-arguments-to-an-application-startup.aspx
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

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.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

733 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