I want the syntax for FOR loop in batch file,windows
+2
A:
FOR %A IN (list) DO command [ parameters ]
list is a list of any elements, separated by either spaces, comma's or semicolons.
command can be any internal or external command, batch file or even - in OS/2 and NT - a list of commands
parameters contains the command line parameters for command. In this example, command will be executed once for every element in list, using parameters if specified.
A special type of parameter (or even command) is %A, which will be substituded by each element from list consecutively.
From FOR loops
rahul
2009-08-31 04:35:00
Can I give the range (1 TO 100) in list?
Pradeep
2009-08-31 04:48:56
`FOR /L %x IN (1,1,100) DO ...`
Joey
2009-08-31 08:49:20