CCP105

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 23

DEPARTMENT OF TECHNICAL EDUCATION

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

CCP105.23 1
Objectives:

After completion of this period, you would be


able to know:
 Wild cards
 Copy command
 TIME command
 DATE command

CCP105.23 2
Wild cards

 Wild cards are special characters used to select files


having a similar pattern.
 There are two wild cards
 *(Asterisk)- Represents any number of any character or
characters
 ?(Question marks)-Represents only one character

CCP105.23 3
Examples

 C>DIR *
 Display all the files.
 C>DIR a*
 display files staring with a

CCP105.23 4
 C>DIR *.a*
 Display files starting with extension ‘a’

 C>DIR P*.a*
 Display files started with primary name ‘p’
and extension starting with ’a’

CCP105.23 5
?:? Is used to select a single character
Ex:
DIR a??.*

It will display all the 3 character files starting with ‘a’ with
any extension.

CCP105.23 6
Dir *.?o?

will display all the files with any file name and with ‘o’ as
the second character in the extension.

CCP105.23 7
Note

ALL THE FOLLOWING EXAMPLES DISPLAY ALL


THE FILES OF THE DIRECTORY

 DIR *
 DIR *.*
 DIR *.???
 DIR ????????.*
 DIR ???????.???

CCP105.23 8
COPY COMMAND

It is used to copy one or more files from one place to


another place on the same storage device or from one
storage device to another

CCP105.23 9
SYNTAX
C > Copy [source drive] source file name
[target drive] target file name

Note: The [ ] specifies optional entry.

CCP105.23 10
Source file:
This specifies address of the file or files to be copied

Target drive:
This specifies address of the directory where source file
files to be copied

CCP105.23 11
Example:
C:\>COPY A:\ Test.Dat C:\ New.Dat

This copies the file TEST.DAT from root directory of drive


A : to root directory of C : drive by the name of
NEW.DAT

CCP105.23 12
Copying using wildcards:

A > COPY *.COM B:\*

It copies all the files which have an extension. COM from


current drive A : into drive B :’s root directory

CCP105.23 13
C > COPY *.* A:\

It copies all the files from drive C : to drive A :’s root


directory

CCP105.23 14
Appending files:

Copy command can also be used to append one file to


another and store the combined file to another file.

C > COPY filename1 + filename2 filename3

It will combine the two specified files into one file

CCP105.23 15
DATE Command :

This command allows you to change the date and


display the system date entered at the time of booting.

To change the date type the following command

A > DATE

CCP105.23 16
OUTPUT
The screen display will look like this :

A > DATE

Current date is Mon 23-02-2008


Enter new date (mm-dd-yy) :

CCP105.23 17
TIME Command:
This command displays current time

A > TIME

The screen display will look like this


A > TIME
Current time is 11 : 00 : 30.08
Enter new time :
TIME and DATE commands are automatically extend at the
time of booting

CCP105.23 18
SUMMARY

 Wild cards
 Special characters used to select files having a
similar pattern.
 Copy command
 Useful to copy one or more files
 Date command
 To display or to change the current date
 Time command
 To display or to change the current time
CCP105.23 19
QUIZ

Which of the following are Internal Commands?

c) TIME
d) DATE
e) DIR
f) All above

CCP105.23 20
Frequently asked Questions in Examination

 Explain COPY Command.


 Explain the following commands
 Date
 Time

CCP105.23 21
Assignment
 Write examples of any four COPY command and explain
the same
 What information do TIME and DATE commands show
and in what format. Give examples

CCP105.23 22
Thank you

CCP105.23 23

You might also like