This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 23. If the commands first argument is the word Donald then it copies it from log.txt to %1.txt 24. Terminates the batch file 25. _______________________________________________________________________________ _______________________________________________________________________________ ______________ Bonus: The call command performs a subroutine call. Executes a secondary batch file or transfers control to a specified label within the current batch file. Control returns to the statement after the call when the subroutine reaches the end of file or an exit /B statement. The goto command directs CMD to jump to the line in the batch file starting with :label and to continue reading statements from that point. Goto :EOF jumps to the end of the file and, in effect, terminates the batch file. Exit /B does the same thing. This is used to terminate batch processing and to exit from a batch file subroutine started with the call statement....
View Full Document
This note was uploaded on 03/19/2012 for the course CIS 121AB taught by Professor Watson during the Fall '11 term at Chandler-Gilbert Community College.
- Fall '11