BATCH SCRIPT Course Details

 A batch file or batch script is a kind of script file in DOS, OS/2 and Windows. It consists of a series of commands to be executed by the command line interpreter, stored in a plain text file. A batch file may contain any command the interpreter accepts interactively and use constructs that enable conditional branching and looping within the batch file, such as "if", "for", "goto" and labels. The term "batch" is from batch processing, meaning "non-interactive execution", though a batch file may not process a batch of multiple data.

1. BATCH SCRIPT – OVERVIEW
2. BATCH SCRIPT – ENVIRONMENT
 Writing and Executing
 Environment Variables
3. BATCH SCRIPT – COMMANDS
 Ver
 ASSOC
 CD
 CLS
 Copy
 DEL
 DIR
 DATE
 ECHO
 EXIT
 MD
 MOVE
 PATH
 PAUSE
 PROMPT
 RD
 REN
 REM
 START
 TIME
 TYPE
 VOL
 ATTRIB
 CHKDSK
 CHOICE
 CMD
 COMP
 CONVERT
 DRIVERQUERY
 EXPAND
 FIND
 FORMAT
 HELP
 IPCONFIG
 LABEL
 MORE
 NET
 PING
 SHUTDOWN
 SORT
 SUBST
 SYSTEMINFO
 TASKLIST
 XCOPY
 TREE
 FC
 DISKPART
 TITLE
 SET
4. BATCH SCRIPT- FILE
 Creating Batch Files
 Saving Batch Files
 Executing Batch Files
 Modifying Batch Files
5. BATCH SCRIPT – SYNTAX

6. BATCH SCRIPT – VARIABLES

 Command Line Arguments
 Set Command
 Working with Numeric Values
 Local vs Global Variables
 Working with Environment Variables

7. BATCH SCRIPT – COMMENTS
 Comments Using the Rem Statement
 Comments Using the :: Statement

8. 8. BATCH SCRIPT – STRINGS
 Create String
 Empty String
 String Interpolation
 String Concatenation
 String length
 ToInt
 Align Right
 Left String
 Mid String
 Remove
 Remove Both Ends
 Remove All Spaces
 Replace a Strings
 Right String
9. BATCH SCRIPT – ARRAYS
 Creating an Array
 Accessing Array
 Modifying an Array
 Iterating Over an Array
 Length of an Array
 Creating Structures in Arrays
10. BATCH SCRIPT – DECISION MAKING
 If Statement
 Checking Variables
 Checking Command Line Arguments
 If/else Statement
 Checking Variables
 if defined
 if exists
 Nested If Statements
 If error level
 Go to Statement
11. BATCH SCRIPT – OPERATORS
 Arithmetic Operators
 Relational Operators
 Logical Operators
 Assignment Operators
 Bitwise Operators
 Redirection
12. BATCH SCRIPT – DATE AND TIME
 DATE
 TIME
13. BATCH SCRIPT – INPUT / OUTPUT
14. BATCH SCRIPT – RETURN CODE
 ERROR LEVEL
 LOOPS
 W
 Hile Statement Implementation
  For Statement – List of Arguments
 Looping through Ranges
 Classic for Loop Implementation
 Looping through Command Line Arguments
 Break Statement Implementation
15. BATCH SCRIPT – FUNCTIONS
 Function definition
 Calling a Function
 Functions with Parameters
 Functions with Return Values
 Local Variables in Functions
 Recursive Functions
 File I/O
 Creating Files
 Writing to Files
 Appending to Files
 Reading from Files
 Deleting Files
 Renaming Files
 Moving Files
 Batch Files – Pipes
 Batch Files – Inputs
 Using the SHIFT Operator
 Folders
 Creating Folders
 Listing Folders Contents
 Deleting Folders
 Renaming Folders
 Moving Folders
16. BATCH SCRIPT – PROCESS
 Viewing the List of Running Processes
 Killing a Particular Process
 Starting a New Process
17. BATCH SCRIPT – ALIASES
 Creating an Alias
 Deleting an Alias
 Replacing an Alias
18. BATCH SCRIPT – DEVICES
19. BATCH SCRIPT – REGISTRY
 Reading from the Registry
 Adding to the Registry
 Deleting from the Registry
 Copying registry keys
 Comparing registry keys
20. BATCH SCRIPT – NETWORK
 NET ACCOUNTS
 NET CONFIG
 NET COMPUTER
 NET USER
 NET STOP/START
 NET STATISTIC
 NET USE
21. BATCH SCRIPT – PRINTING
 Command Line Printer Control
 Testing if a Printer Exists

22. BATCH SCRIPT – DEBUGGING
 Error Messages
 Complex Command Lines
 Subroutines
 Windows Versions

23. BATCH SCRIPT – LOGGING

Last modified: Friday, 29 July 2016, 12:23 AM