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
- Fall '11
- Batch file, 4DOS, secondary batch file, current batch file