Link to home
Start Free TrialLog in
Avatar of arthrex
arthrexFlag for Germany

asked on

VBScript: Restart a script automatically



My VBScript should run constantly on a server (Picking and mailing files).
So my question is:
What do I have to write at the end of my script, so that it will restart itself?

Thank you very much!
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
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
Avatar of arthrex

ASKER


That's great thank you very much!!

One last question. Why do I have to declare a constant outside the While-Loop?
(if I do so in the loop, it's throwing the error: Name already declared)

But I'm able to declare variables inside the loop?!
Because a constant can't be changed...and if the declaration is inside the loop it's like your trying to set the constant to a different value when the line is hit again.

Avatar of arthrex

ASKER


thank you very much!