This is the real problem, This string is bad. Join our community to see this answer! Unlock 1 Answer and 11 Comments. Andrew Hancock - VMware vExpert. See if this solution works for you by signing up for a 7 day free trial. What do I get with a subscription? With your subscription - you'll gain access to our exclusive IT community of thousands of IT pros.
We can't always guarantee that the perfect solution to your specific problem will be waiting for you. If you ask your own question - our Certified Experts will team up with you to help you get the answers you need. The following are to two syntaxes that you can use from the command line or from inside the script respectively:. This simple script starts counting from 10 until 20 while incrementing the counter just once per iteration.
It is also possible to count backwards by changing the parameters by starting from a higher number, down to a lower number and specifying a negative step argument like this:. Simple and straight to the point. You might also like:.
This site uses Akismet to reduce spam. Learn how your comment data is processed. I suggest you to review this post: dostips. Add a comment. Active Oldest Votes.
Improve this answer. Rodas A. Rodas But how can I make that goto a different line when it reaches a certain point? I'll update the answer to match what I think you want. Ahh ok thanks I think I get it now, I was just confused because I'm used to using an else or something.
When I do this, it still just outputs a 0 : — Wolverine Show 1 more comment. Aldrein Aldrein 71 1 1 silver badge 1 1 bronze badge. Second, check your goto flow - this never loops back to A. Ahhhh thanks, I should've done my research on the! Jhon Jhon 7 7 silver badges 28 28 bronze badges. If anyone has time, could they explain what the 's do? Or is it just syntax telling when the else part ends? Without " " batch breaks.
Please explain the code you propose as a solution. I'll be of way more value if you explain what you're doing. CreateObject "WScript. Shell" ; WshShell. SendKeys WScript.
0コメント