Link to home
Start Free TrialLog in
Avatar of John Darby
John DarbyFlag for United States of America

asked on

Creating infinite loop in VBS

What might be the most compact instruction I could use to cause an infinite loop in vbs?
Thanks!
JohnD
Avatar of mvidas
mvidas
Flag of United States of America image

Hi John,

Not sure why you want to do this, but what about just:

For i = 1 to 10
 i = i - 1
Next

Matt
Avatar of John Darby

ASKER

Thanks Matt!
Is there a way to determine when the script engine has timed out with the script above?
ASKER CERTIFIED SOLUTION
Avatar of mvidas
mvidas
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Matt; that's great!
Glad to help!
Avatar of Lokesh Natarajan
Lokesh Natarajan

It is not working out for me. When I tried to compile the code above,it become not responding.