Variable substitution is another useful feature that using command extensions provides (see the
???Using Variable Substitution??? section of the chapter for details). Finally, you can perform complex
file parsing and iteration with the command extension in place (see the ???Performing
Complex File Iteration??? section of the chapter for details).
STARTING THE COMMAND INTERPRETER 105
FType Microsoft hasn??™t documented how command extensions change the FType command.
Even though Microsoft lists it as one of the commands that changes with command extensions,
there isn??™t any obvious difference at the command line.
Goto Defines a special label called :EOF. If you define a Goto command in a batch file with the
:EOF label, the system transfers control to the end of the current batch file and exits. You don??™t
need to define the label in the batch file to make this feature work.
If Defines additional comparison syntax that makes the If command considerably more
flexible. See the ???Using the If Command??? section of the chapter for details.
MkDir (MD) Lets you create intermediate directories with a single command. For example,
you could define an entire subdirectory structure using MD MyDir/MySub1/MySub2.
Pages:
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296