1.

Solve : What does FOR do??

Answer»

Can someone explain what the Command Prompt command FOR does?

I've tried reading the help file for it, but it is a BIT too complicated for me.Runs a specified command for each file in a set of files.

FOR %variable IN (set) DO command [command-parameters]

%variable SPECIFIES a replaceable PARAMETER.
(set) Specifies a set of one or more files. WILDCARDS may be USED
command Specifies the command to carry out for each file.
command-parameters
Specifies parameters or switches for the specified command.

To use the FOR command in a batch program, specify %%variable INSTEAD of
%variable.



Discussion

No Comment Found