Ch11Powr - Advanced Batch Files Ch 11 1 Overview Quick...

Info iconThis preview shows pages 1–20. Sign up to view the full content.

View Full Document Right Arrow Icon
Ch 11 1 Advanced Batch Files
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Ch 11 2 Overview Overview Quick review of batch file commands learned in earlier chapters.
Background image of page 2
Ch 11 3 Overview Overview Advanced features of these commands will be explained and used.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Ch 11 4 Overview Overview Will explain the purpose and function of remaining batch file commands and then will use these commands to write sophisticated batch files.
Background image of page 4
Ch 11 5 Overview Overview Will refine techniques in working with environment.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Ch 11 6 Batch File Commands Batch File Commands Batch files: Have file extension .BAT or .CMD Are ASCII text files Include legitimate commands Create generic batch files using replaceable parameters Are not case sensitive
Background image of page 6
Ch 11 7 Batch File Commands Batch File Commands Any command used at the command line can be used in a batch file.
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Ch 11 8 Batch File Commands Batch File Commands Table 11.1 Batch File Commands p. 548 Table 11.1 Batch File Commands p. 548
Background image of page 8
Ch 11 9 Batch File Commands Batch File Commands Table 11.1 Batch File Commands p. 548 Table 11.1 Batch File Commands p. 548
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Ch 11 10 Batch File Commands Batch File Commands Batch files have: Limited vocabulary (commands) Syntax Programming logic
Background image of page 10
Ch 11 11 Review of REM, PAUSE, Review of REM, PAUSE, and ECHO Commands and ECHO Commands REM command (remarks): Documents batch file Not a command that executes With ECHO ON displays but does not execute what follows REM Placed at beginning of a line in batch or CONFIG.SYS file, REM disables but does not delete line
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Ch 11 12 Review of REM, PAUSE, Review of REM, PAUSE, and ECHO Commands and ECHO Commands PAUSE command: Instructs batch file to stop executing until user takes some action Does not stop execution of .EXE or COM program Will not do any conditional processing
Background image of page 12
Ch 11 13 Review of REM, PAUSE, Review of REM, PAUSE, and ECHO Commands and ECHO Commands To interrupt a batch file during execution: Press <Ctrl> + C Press <Ctrl> + <Break>
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Ch 11 14 Review of REM, PAUSE, Review of REM, PAUSE, and ECHO Commands and ECHO Commands ECHO command: Used on command line or in batch file Controls printing of messages on screen when batch file run
Background image of page 14
Ch 11 15 Review of REM, PAUSE, Review of REM, PAUSE, and ECHO Commands and ECHO Commands ECHO ON -displays all commands to screen along with output. ECHO OFF - displays only output of commands to the screen. Precede ECHO OFF with @ and “ECHO OFF” will not appear on screen.
Background image of page 15

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Ch 11 16 Advanced Features of Advanced Features of ECHO and REM ECHO and REM For faster processing, use a double colon (::) instead of “REM” in front of remark or documentation line.
Background image of page 16
Ch 11 17 Advanced Features of Advanced Features of ECHO and REM ECHO and REM To delete the display of even the message “1 file(s) copied”, redirect output of command to NUL device.
Background image of page 17

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Ch 11 18 Advanced Features of Advanced Features of ECHO and REM ECHO and REM Using NUL will not suppress a message such as “file not found”.
Background image of page 18
Ch 11 19
Background image of page 19

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 20
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/05/2010 for the course CIS CIS 103 taught by Professor Dorisdunn during the Winter '09 term at Skagit Valley College.

Page1 / 102

Ch11Powr - Advanced Batch Files Ch 11 1 Overview Quick...

This preview shows document pages 1 - 20. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online