Prev | Current Page 374 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"

3 format) form only.
%~dp$PATH:I Locates the file using the PATH environment variable. The system outputs just
the drive letter and path of the first match found.
%~ftzaI Creates the same output as the Dir command. However, the output is different from
the Dir command because the file listing could span multiple directories. The focus of the listing
is different.
Using the Goto Command
The Goto command transfers control from one part of a batch file to another. You can??™t use the Goto
command to transfer control to other batch files. For this task, you use the Call command described
in the ???Using the Call Command??? section of the chapter. The Goto command takes a simple form: Goto
Label, where Label is a keyword used to define the transfer point in the batch file. Labels are always
preceded by a colon, such as :MyLabel. Listings 5.1 and 5.2 both show the Goto command in action.
Using the If Command
To write any reasonably complex batch file, you need to perform flow control??”the active selection
of code to run based on current conditions. For example, you might want to know that the previous
task succeeded before you begin the next task.


Pages:
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386
Paula Abdul agencja reklamowa poznań 2 1 opony samochodowe Danny