blank.gif (43 bytes)

Church Of The
Swimming Elephant




Runs a specified command for each file in a set of files.

You can use the for command within a batch program or directly from the command prompt.

To use for in a batch program, use the following syntax:

for %%variable in (set) do command [command-parameters]

To use for from the command prompt, use the following syntax:

for %variable in (set) do command [command-parameters]


%%variable or %variable

Represents a replaceable variable. The for command replaces %%variable (or %variable) with each text string in the specified set until the command (specified in the command parameters) processes all the files. Use %%variable to carry out the for command within a batch program. Use %variable to carry out for from the command prompt.


Specifies one or more files or text strings that you want to process with the specified command. The parentheses are required.


Specifies the command that you want to carry out on each file included in the specified set.


Specifies any parameters or switches that you want to use with the specified command (if the specified command uses any parameters or switches).

More Information About For

ntcmds00000001.gif For--Notes

ntcmds00000001.gif For--Examples


Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

Have you gone to church today?
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609