Creating Conditional DOS Batch Files
Module Q13hd
* About this
document... * Audience and Objectives *
Contents
If you are using a browser, you can click on this
separator wherever you see it to return to the Contents
Topic 1
Subtopic A
Audience:
This document is for people who want to create DOS batch files using conditional
(IF) structures. You are expected to understand the principles of conditional
batch file commands (see module Q12cd), and have
experience using a simple text editor to create straight-forward batch
files (see module Q11hd).
Objectives:
When you successfully complete this lesson, you will be able to...
-
Use labels in a batch file
-
Use the DOS conditional (IF) structure
-
Test for the existence of a file
-
Test for the existence of command-line parameters
-
Test for the presence of specific parameter values
-
Test the return-value of a program
About this document...
Module Q13hd: Creating Conditional DOS Batch Files
This document is part of a modular instruction series in Computer Information
Systems. For more information, see the overview
or the list of modules in this series, Q Modules: Operating
Systems. This document has been used in the following classes: CIS
290.
-
Author:
-
Laurence
J. Krieg
-
Institution:
- Department
of Computer Information Systems, Washtenaw
Community College
-
History:
-
Original: 23 Feb 1998
-
Copyright:
-
Copyright © 1998, Laurence J. Krieg.
Instructors: You may point to this file in your Web-based materials.
Students: you may make a copy for your personal use.
All other uses: contact the author, Laurence
J. Krieg for permission.