You are on page 1of 12

DEPARTMENT OF TECHNICAL EDUCATION

ANDHRA PRADESH
Name : M.Bhagya Lakshmi,
Designation : Lecturer in CCP,
Institution : GMR Polytechnic, Gajwel
Branch : DCCP
Year/Semester : First Year
Subject name : Computer Fundamentals.
Subject Code : CCP-105
Major Topic : DOS Operating System
Sub –Topic :Modes of processing
Duration : 50 min.
Teaching Aids : PPT

CCP105.33 1
OBJECTIVES:

On completion of this period , you will be able to


know:

 BATCH FILES
 CREATION OF BATCH FILES
 EXECUTING THE BATCH FILES

CCP105.33 2
BATCH FILES
 You may often find yourself repeatedly typing the
same sequence of commands to perform some
common task.

 With MS-DOS you can put this command


sequence into a special file called a batch file and
then run the whole sequence of commands by
simply typing the name of the batch file.

 This process is known as ‘BATCH


PROCESSING’.
CCP105.33 3
We can Use Batch Files to…

 Use a single command to execute a series of a


commands.

 Create alternative name for the commands.

 To call another batch file from one batch file.

 Execute the set of commands each time you start your


computer

CCP105.33 4
CREATION OF BATCH FILES
Batch file can be created with
 DOS editor
 Word Processor
 Copy Con Command.

Limitations while creating a Batch File:


 It must have an extension BAT.
 Every statement should start with a valid DOS Command.
 All the other limitations of creating a file in DOS apply.

CCP105.33 5
EXECUTING THE BATCH FILES

 Can be executed by simply typing it’s name at the DOS


Prompt.

 Dos will read the Batch file line by line and Executes it line by
line.

 Apart from the regular DOS Internal and External Commands,


there are some special BATCH PROCESSING COMMANDS
which can be used exclusively in the BATCH files.

CCP105.33 6
They are…

1. CALL 2. ECHO 3.GOTO

4. IF 5.IF EXIST 6.REM

7. CHOICE

CCP105.33 7
SUMMARY:

 BATCH FILES

 CREATION OF BATCH FILES

 EXECUTING THE BATCH FILES

CCP105.33 8
A Batch file can be created by
• DOS editor
• Word Processor
• Copy Con Command of Dos
• ALL

CCP105.33 9
ASSIGNMENT
1. State the procedure of creation of a batch file.

CCP105.33 10
FREQUENTLY ASKED QUESTIONS

1. List various commands used only in batch file.

CCP105.33 11
CCP105.33 12

You might also like