What Batch File Programming Can Be Used For
Batch file programming is a very useful way to automate small, repetitive, tasks. The Windows Command Line Programming tutorial is a good starting place to read about the basics of batch file programming, for those who are new to creating batch files.
It is also a good idea to have a debugger handy, such as the Running Steps batch file IDE and integrated debugger.
The FOR command has 2 uses in batch file programming:
* Processing lists of files;
* Looping through variable values.
In command line batch file programming, FOR works rather like other looping constructs common to all procedural programming languages. The difference between traditional FOR commands for counted loops is that, in MS-DOS/Windows Command Line Batch File programming, it can be used to process a list of files.