Sunteți pe pagina 1din 23

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
Topic : DOS Operating System
Duration : 50 min.
Sub –Topic : DOS-PATH MD,CD.
Teaching Aids : PPT
CCP105.25 1
OBJECTIVES:

On completion of this period, you would be able


to know and use

 PATH of files
 Mkdir command
 Chdir command

CCP105.25 2
Recap

• PROMPT command
• Useful to change the Dos Prompt
• DELETE command
• Useful to delete file
• ERASE command
• Useful to erase files

CCP105.25 3
PATH:

 Path specifies location of a file within the directory tree

CCP105.25 4
PATH SPECIFICATION
 Files are stored in directories
 Directories are created on Drives
 Path means address of the files and directories
 Path consists of drive and directory
 Drives are : A & B - Floppy drives.
C,D,E.. - Hard disk drive
F,D.. - CD drives/pen drives
 PATH command helps in knowing or setting paths

CCP105.25 5
Default drive

 PC automatically works with one particular disk drive


which may be either A: or B: or C:
 This drive is known as the default drive.
 The PC will work with this drive until we instruct the PC
to change the drive.
 We can change the default drive entering the new drive
name followed by a colon (:)
 EX:
 A>(original prompt)
 A>C: (press enter key)
 C> (new prompt)

CCP105.25 6
PATH command

 Is used to find out present path or change the path


 Is used to set path to several directories for searching
files

CCP105.25 7
PATH command… contd

 To display the current search path, use the following


syntax:
A:\> PATH
 To set path to a directory or directories
PATH A:\XX; A:\YY
So that DIR searches current directory first next A:\XX
and A:\YY.

CCP105.25 8
MKDIR(OR MD)
 This command enables you to create a directory in the
current directory

 The general form of the MD (Short for MKDIR) command


is
MD <directory name >

CCP105.25 9
MKDIR command… contd

 Rules for naming a directory are the same as for files.

Example:
C:\>MD PAYROLL (create pay role directory in
root directory of C)

CCP105.25 10
MKDIR command… contd

 If the computer prompts the message


“Directory already exists”, then give the new name.

You can check whether the PAYROLL directory is


created or not by typing DIR and pressing enter key

CCP105.25 11
CHDIR (OR CD)
 Changes the current directory to a new directory

 Syntax
CD <directory name>

CCP105.25 12
Example

If you want to change to the FORTRAN


subdirectory, type the command

C>CHDIR FORTRAN
or
C>CD FORTRAN

CCP105.25 13
Example

If you want to create a subdirectory OFFICERS


under the directory PAYROLL,

Type the commands

C> CD PAYROLL
C> MD OFFICERS

CCP105.25 14
Example

 To go to OFFICE directory in MEMO directory which is


in TEXT directory from A drive.

A:\>CD C:\TEXT\MEMO\OFFICE

CCP105.25 15
Going back in directory structure

 Adding two(..) to CD command takes control to one


directories back.

Suppose current directory is C:\GPW\DCCP\EXAMS

 C>cd.. Takes to DCCP directory


 C>cd ../.. Takes to GPW directory
 C>cd Takes to root directory

CCP105.25 16
CHDIR…Contd
 Example:
 Suppose, the current directory is
C:\GPW\CCP\XY

C>CD. - takes to directory C:>\GPW \CCP


C>CD.. - takes to directory C:\GPW

CCP105.25 17
Summary

 Path
 Specifies location of a file within the directory tree

 Mkdir
 Useful to create directory

 Chdir
 Useful to change the directory

CCP105.25 18
QUIZ

CCP105.25 19
To change directory, the command is

 Mkdir
 Chdir
 Rd
 all

CCP105.25 20
Mkdir command is used create

c) Directory
d) File
e) a&b
f) Subdirectory

CCP105.25 21
Frequently asked questions in examination

 Explain the following commands

 Path
 Mkdir
 Chdir

CCP105.25 22
Thank you

CCP105.25 23

S-ar putea să vă placă și