Run code on a schedule

P

pvong

Doing this in VB.net and I'm a newbie.

I have an onclick that runs some code and then sends an email based on the
answer. I have to click this button everyday. Is there a way to run this
as a schedule. Can you create a batch file that runs vb code?
 
P

pvong

I found some stuff on Google, the the instructions are not very good. I
guess I was just wondering if anyone had a good detail site that shows you
this for newbies.

Thanks!
 
G

Gregory A. Beamer

Doing this in VB.net and I'm a newbie.

I have an onclick that runs some code and then sends an email based on
the answer. I have to click this button everyday. Is there a way to
run this as a schedule. Can you create a batch file that runs vb
code?

1. Set up a console application that makes the check instead of an ASP.NET
application. Then, set it up to run every day using a scheduling tool. In
Windows, on possibility is the built in at.exe.

2. Set up a windows service (a bit harder) and call the check code on a
scheduled basis. Harder to implement, but can be set up to auto run on
start up.

In both instances, move the code from ASP.NET to a library and create
either the console or windows service UI bits separately.

Peace and Grace,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,815
Latest member
treekmostly22

Latest Threads

Top