Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Building   (RSS)

For, Part 2

Continuing from last time . If Command Extensions are enabled, the following additional forms of the FOR command are supported: [Note that Windows 2000 and later have Command Extensions enabled by default.] FOR /D %variable IN (set) DO command [command-parameters]

For, Part 1

Continuing from last time . The usage for the basic for loop looks like: FOR %variable IN (set) DO command [command-parameters] %variable Specifies a single letter replaceable parameter. (set) Specifies a set of one or more files. Wildcards may be used.

The for Command

I stated earlier that the command prompt can be a very powerful scripting shell. Much of this power comes from the "for" command. Let's look into it more closely. First, the text of "help for" on my Windows XP SP2 machine: Runs a specified command for

About Me

My name is Jeremy Morton; I have been working at Microsoft for nearly 7 years [for nearly 2 years as a contractor, and as an employee for the last 5]. Currently, I am an SDET [Software Design Engineer in Test] for an internal server product, but most
 
Page view tracker