For Command In Windows Server 2008

This article explains how to use For command in Windows Server 2008 operating system.
  • 1351


For command in Windows Server 2008 operating system is used to run a specified command for each file in a set of files. Syntax for using For command in Windows Server 2008 is given below.


for {%% | %} <Variable> in (<Set>) do <Command> [<CommandLineOptions>]

Parameters For For

Parameter Description
{%% | %}<Variable> Shows an replaceable parameter.
(<Set>) Defines one or more files, directories or text string or a range of values on which to run the command.
<Command> Defines the command that user want to carry out on each file, directory or text string or on the range of values included in Set.
<CommandLineOptions> Defines any command line options that user want to use with specified protocol.
/? Shows help at the command prompt.

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2020 DotNetHeaven. All rights reserved.