We help IT Professionals succeed at work.

VBScript Loop Every 10 Minutes

MDauphinais1
MDauphinais1 asked
on
17,880 Views
Last Modified: 2008-01-09
What's a quick VBScript loop I can use to loop something every 10 minutes?
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
ok, so how would I use that to loop?

Say for instance I wanted a message box to appear every 10 minutes (I don't but just as an example):

MsgBox "say something"
GoSleep(600)     <-- (600 for 10 minutes)

Or would I have to put my "message box" into the function itself to get it to loop?

Commented:
no, gosleep 600 is only 600 milliseconds.  1000 milliseconds = 1 second. So, gosleep 60000 is one minute.  I would guesss gosleep(600000) would be over the maximum limit allowed by the function, so you'd need to place it inside a for loop or do the other calculation where the start time is subtracted from the end time in a while loop.

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks guys. I can make something happen with that.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.