Link to home
Start Free TrialLog in
Avatar of jl66
jl66Flag for United States of America

asked on

How to repeat call procedure in VBS

Want to call a procedure a few times but I got the error. For example,
' start here
EchoSth Name1
EchoSth Name2
EchoSth Name3

sub EchoSth (ServerName)
Wscript.Echo ServerName
end sub
' end here

I expected to echo back after execution this script
Name1
Name2
Name3
But not. What is wrong with the code?



ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

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 jl66

ASKER

It works. Thanks a lot.