Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a VB Expert!

Join 244,296 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 854 people online right now. Registration is fast and FREE... Join Now!




executing exec for every 5 min interval

 
Reply to this topicStart new topic

executing exec for every 5 min interval

al_ganga
6 Jan, 2009 - 10:51 PM
Post #1

New D.I.C Head
*

Joined: 6 Jan, 2009
Posts: 3

executing exec for every 5 min interval using vb code, any one help

my program shd execute every 5 min interval , The interval is enter by user.

User is offlineProfile CardPM
+Quote Post


Jayman
RE: Executing Exec For Every 5 Min Interval
7 Jan, 2009 - 09:23 AM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 8,063



Thanked: 159 times
Dream Kudos: 500
Expert In: Everything

My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is online!Profile CardPM
+Quote Post

sam_benne
RE: Executing Exec For Every 5 Min Interval
7 Jan, 2009 - 09:56 AM
Post #3

D.I.C Addict
Group Icon

Joined: 16 Jan, 2008
Posts: 512



Thanked: 4 times
Dream Kudos: 400
My Contributions
Try using the timer.
User is offlineProfile CardPM
+Quote Post

al_ganga
RE: Executing Exec For Every 5 Min Interval
7 Jan, 2009 - 06:42 PM
Post #4

New D.I.C Head
*

Joined: 6 Jan, 2009
Posts: 3

I try using timer, But not coming, I want to sample code for execting my exec program every 5 min interval, the interval is enter by user in text box.
Pls give some idea or sample code.

then i want to know how to write code to run the vb program between timing using 2 text box,
example:
starting time: 10.00AM and ending time 12:00pm.
using this time interval my program shd run with polling interval of every 5 min. pls give a help
User is offlineProfile CardPM
+Quote Post

sam_benne
RE: Executing Exec For Every 5 Min Interval
7 Jan, 2009 - 11:41 PM
Post #5

D.I.C Addict
Group Icon

Joined: 16 Jan, 2008
Posts: 512



Thanked: 4 times
Dream Kudos: 400
My Contributions
Well for the timer what you need to do is set the interval to 1000 as that will be 1 second. Then you will need a button to enable that timer. In the timer you need to get it to add 1 to a variable and then if that variable = a number (the 5 mins in seconds) then it stops the timer ans executes your code.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 04:40PM

Live VB Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month