Windows Batch Tutorial
Introduction First batch program Special characters in Batch programming Accepting user input Operators in Batch scripting Working with variables Integer operations Floating point operations Conditional Statements Looping statements goto statement Writing functions Passing arguments Returning exit codeLoops in windows batch
Below example illustrates how to use “for” loop in Batch programming. First for loop will print values from 1 to 3. Second for loop will print values of the first and second argument.
@echo off
FOR %%p IN (1 2 3 ) DO echo %%p
FOR %%p IN (%1 %2 ) DO echo %%p
Web development and Automation testing
solutions delivered!!