Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I have written a program in VB.NET that I want to run automatically everyday at noon. Not quite sure how to accomplish this task. Any help would be greatly appreciated.

 

I'd just open up the Task Manager and set to run every day at noon. :D

 

If you want to do it via .Net, you'd have to have the actual program running 24/7 and constantly checking the PC Time like once every second or so... maybe every 10 seconds and wait until it's past noon, then run the procedure.

 

You could also create a launcher program, which would act like Task Manager, watching the time, then running X att at X time

Posted (edited)

Argh. I'm on crack.

 

I got half the name right. It's called Scheduled Tasks, its in your Control Panel (unless you have 98/2000/XP lite, which allows you to remove it)

 

You just open it up, double click on Add Scheduled Task. Then you get a standardized list of installed programs (like when you choose file extension associations). You click "Browse..." and tell it were to find your .exe file.

 

You then get a choice of what you want to call the Scheduled Task and a choice to perform the task "Daily, Weekly, Monthly, One time only, When my computer starts, When I log on"

 

From there you should be able to configure it to your likings. I say to practice with it by setting it a minute ahead of what time it is to test it. Mine at home had no problems. At work, there was some issue with it needing the computers admin name/password and it took like 9 tries to get it working.

Edited by Denaes

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...