For - Symbol PDT 3200 Technical Reference Manual

Hide thumbs Also See for PDT 3200:
Table of Contents

Advertisement

PDT 3200 Technical Reference Guide
Command
Type
Purpose
FOR allows repeated execution of a ROM-DOS command applied to a set of Þles.
Syntax
FOR %% variable IN ( set ) DO command %% variable
Remarks
In execution, this command attaches the variable as an identiÞer to each Þle in the
set of Þles described. It then applies the command to each of these identiÞed Þles.
The set may be an exact list of complete Þle names, or a global Þle speciÞcation
using wildcard characters.
The FOR subcommand can be used directly on the command line as well as within
a batch Þle. To use on the command line, substitute a single percent (%) symbol for
the double percent signs (%%).
Examples
FOR %%N IN (Q1.TXT Q2.TXT) DOPRINT %%N
This command will print only the Þles Q1.TXT and Q2.TXT.
FOR %%N IN (*.TXT) DO PRINT %%N
This command will print all Þles, in the current default directory, with a .TXT
extension.
5-54

FOR

Internal Batch Subcommand

Advertisement

Table of Contents
loading

Table of Contents