SlideShare a Scribd company logo
MS-DOS
 MS-DOS is a single user operating system. It is a collection of programs and other files.
 Files and File names: A file is a collection of related information.
 The files should have suitable names for their identification in later use.
 Rules for naming the files:
1. File names should be of one to eight characters in length with an option of one to three character
extension. Ex. Resume.doc
2. File names can include any one of the following characters:
 A to Z (or a to z) 0 to 9, $, &, #, @. %, ( ), { }
 The characters which are not allowed are:
 :, ; + /  * as these have special meaning
3. When a file name includes an extension, it should be referred along with its extension and not only
with the first part.
4. Reserved devices names are not allowed. (COMMAND.COM, DATE, etc.)
Types of files in DOS
 There are different types of files, according to the usage. To differentiate each file, the computer will give
an extension to identify the different types of files, which are :
 Executable Files:
 The files with extension of either .COM or .EXE are called executable files. These files are directly executed
by typing their names (without the extension) by the computer. A file with .COM extension refers to
COMMAND file name and the other with .EXE extension refers EXECUTABLE program file.
 Batch Files:
 The file containing a series of DOS commands, which are executed automatically one at a time in the
order entered, is known as the batch file. A batch file has the extension .BAT. If the batch file is given a
special name AUTOEXEC.BAT, it is automatically executed when the computer is switched on or during
booting.
 Backup Files:
 These are backup files of a file and have extension .BAK. These files are such that their contents can not be
altered (edited). These files are created while working with WORDSTAR package for typing a document.
 System Files:
 These are program files developed for system control. They have .SYS extension.
.
 Directory: It is a collection of files, size, date and time of creation of files.
 The main directory of a drive is called Root Directory into which several directories and sub-
directories may exist.
 Folder: It is a collection of files.
Types of DOS commands:
 There are two types of commands:
 i) Internal Commands
 ii) External Commands
i) Internal DOS commands:
 Internal commands are those commands which manage files.
 They are loaded into the memory of the PC when PC is booted.
 These are stored in a large file with file name COMMAND.COM, when a PC is booted.
Internal Commands:
1. DIR: Dir displays continuously the directory of file names, file size, date and time of creation.
 C:>dir d:
 This command displays the list of files and directories from the drive D.
 It can be specified with two options:
 i) Dir/p: It displays files pagewise.
 ii) Dir/w: displays the files of the directory in a five column format. Only file names and their extensions will be
displayed without the date and time of creation.
 In addition, DIR can also be specified with wildcard characters (such as * or ?) to list files sharing a common element
in the file name or extension.
 Eg: DIR STATS.* : lists all files with STATS and other combinations along with the extensions.
 DIR *.COM : lists all files with extension .COM
2. DEL: Deletes a specified file.
Syntax: DEL {filename} ↵
Ex. Del resume ↵
 Suppose you want to delete a file COMPUTER.DOC on A drive, the command will be:
 C:> DEL A: COMPUTER.DOC ↵
.
3. COPY: The COPY command is used to copy files from one place to another.
 Syntax: copy {Drive name} <source file> {Drive name} <target file name>
 Ex. COPY A:MATHS C:STATS ↵
4. REN: The REN command is used to rename the old file with another name.
Syntax: REN Old file name New file name
Ex. C:> REN MATHS.TXT RESULT.TXT ↵
5. DATE: It displays current date and asks for new date in (mm)-(dd)-(YY) format.
 Syntax: C:> Date ↵
6. TIME: It displays current time and asks for new tine and if no new time is to be entered press enter.
 Syntax: C:> Time ↵
 7.VER: displays the version of DOS
 Syntax: C:> VER ↵
 8.CLS : when you want to clear the screen, type in the following command:
 C:> CLS ↵
ii) External commands: External commands are small file programs used for doing specific jobs.
 1. SORT: It sorts the files in alphanumeric order: either A to Z or Z to A
 DIR| SORT (or) DIR/ON : Displays all the files in A to Z order
 2. FORMAT: Formatting a (new) disk imply organizing the new disk into magnetic tracks and
 sectors that are readable by DOS. The PC copies files only on a formatted disk.
 FORMAT a: formats disk in drive ―A‖
 3. VOL: This command displays the volume label of the current disk
 4. LABEL: It is used to create, change or delete the volume label on the disk
 5. PATH: It is used to provide access to files located on other directories or on other disks.
 Thus while in ―C‖ drive, one can directly invoke files of DOS, WORDSTAR (WS) directories by giving the
following command:
 PATH = C:DOS; C:WS
.
6. MD: It is used to make a new directory (or sub-directory) which is subordinate to the current
(or root) directory. It is specified as follows:
 C:> MDSTATS (or) MD STATS : This command makes (creates) a new directory with
 the name ― STATS.
 7. CD : It is used to change from one directory to the other.
 If we have to work with files in the directory ―STATS‖, the directory has to be changed
 to ―STATS‖
 Ex: C:>CD STATS (or) CD STATS : This command changes the root directory to the
 directory ―STATS‖.
 8. RD: It removes or deletes a directory. To remove a directory.
 To remove the directory STATS, the command is C:> RD STATS21
 9. TREE: It displays the directories and sub-directories existing in a drive with a ―TREE diagram.

More Related Content

Similar to 10 MS DOS and Its Commands.pptx .related to

ch6.ppsx
ch6.ppsxch6.ppsx
ch6.ppsx
ssuser5ab112
 
Comp practical
Comp practicalComp practical
Comp practical
Kritika Sharma
 
Dos 16
Dos 16Dos 16
Msdos crash course
Msdos crash courseMsdos crash course
Msdos crash course
Devinder Prasad
 
File and fat
File and fatFile and fat
File and fat
Vimal Madhale
 
File and fat 2
File and fat 2File and fat 2
File and fat 2
Vimal Madhale
 
p_ms-dos-new.ppt
p_ms-dos-new.pptp_ms-dos-new.ppt
p_ms-dos-new.ppt
PoojaTripathi92
 
Dos_Commands.ppt
Dos_Commands.pptDos_Commands.ppt
Dos_Commands.ppt
Osmania University
 
Dos%20commands(1)
Dos%20commands(1)Dos%20commands(1)
Dos%20commands(1)
IDHAMUKI
 
Lect basic computer
Lect basic computer Lect basic computer
Lect basic computer
susir
 
Unix Basics For Testers
Unix Basics For TestersUnix Basics For Testers
Unix Basics For Testers
nitin lakhanpal
 
Ms dos full explanation
Ms dos full explanation Ms dos full explanation
Ms dos full explanation
ParmvirSingh11
 
Command line interface
Command line interfaceCommand line interface
Command line interface
MuhammadRobeel3
 
DOS commands
DOS commandsDOS commands
DOS commands
preetikapri1
 
What is DOS (Disk Operating System).pdf
What is DOS (Disk Operating System).pdfWhat is DOS (Disk Operating System).pdf
What is DOS (Disk Operating System).pdf
RohitRoshanBengROHIT
 
Dos commands new
Dos commands new Dos commands new
Dos commands new
suraj pandey
 
Unix Administration
Unix AdministrationUnix Administration
Unix Administration
Nishant Munjal
 
Internal commands of dos
Internal commands of dosInternal commands of dos
Internal commands of dos
Nargiskhan786
 
Chapter 2 Linux File System and net.pptx
Chapter 2 Linux File System and net.pptxChapter 2 Linux File System and net.pptx
Chapter 2 Linux File System and net.pptx
alehegn9
 
Disk Operating System.pptx
Disk Operating System.pptxDisk Operating System.pptx
Disk Operating System.pptx
DrIrfanulHaqAkhoon
 

Similar to 10 MS DOS and Its Commands.pptx .related to (20)

ch6.ppsx
ch6.ppsxch6.ppsx
ch6.ppsx
 
Comp practical
Comp practicalComp practical
Comp practical
 
Dos 16
Dos 16Dos 16
Dos 16
 
Msdos crash course
Msdos crash courseMsdos crash course
Msdos crash course
 
File and fat
File and fatFile and fat
File and fat
 
File and fat 2
File and fat 2File and fat 2
File and fat 2
 
p_ms-dos-new.ppt
p_ms-dos-new.pptp_ms-dos-new.ppt
p_ms-dos-new.ppt
 
Dos_Commands.ppt
Dos_Commands.pptDos_Commands.ppt
Dos_Commands.ppt
 
Dos%20commands(1)
Dos%20commands(1)Dos%20commands(1)
Dos%20commands(1)
 
Lect basic computer
Lect basic computer Lect basic computer
Lect basic computer
 
Unix Basics For Testers
Unix Basics For TestersUnix Basics For Testers
Unix Basics For Testers
 
Ms dos full explanation
Ms dos full explanation Ms dos full explanation
Ms dos full explanation
 
Command line interface
Command line interfaceCommand line interface
Command line interface
 
DOS commands
DOS commandsDOS commands
DOS commands
 
What is DOS (Disk Operating System).pdf
What is DOS (Disk Operating System).pdfWhat is DOS (Disk Operating System).pdf
What is DOS (Disk Operating System).pdf
 
Dos commands new
Dos commands new Dos commands new
Dos commands new
 
Unix Administration
Unix AdministrationUnix Administration
Unix Administration
 
Internal commands of dos
Internal commands of dosInternal commands of dos
Internal commands of dos
 
Chapter 2 Linux File System and net.pptx
Chapter 2 Linux File System and net.pptxChapter 2 Linux File System and net.pptx
Chapter 2 Linux File System and net.pptx
 
Disk Operating System.pptx
Disk Operating System.pptxDisk Operating System.pptx
Disk Operating System.pptx
 

Recently uploaded

Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 

Recently uploaded (20)

Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 

10 MS DOS and Its Commands.pptx .related to

  • 1. MS-DOS  MS-DOS is a single user operating system. It is a collection of programs and other files.  Files and File names: A file is a collection of related information.  The files should have suitable names for their identification in later use.  Rules for naming the files: 1. File names should be of one to eight characters in length with an option of one to three character extension. Ex. Resume.doc 2. File names can include any one of the following characters:  A to Z (or a to z) 0 to 9, $, &, #, @. %, ( ), { }  The characters which are not allowed are:  :, ; + / * as these have special meaning 3. When a file name includes an extension, it should be referred along with its extension and not only with the first part. 4. Reserved devices names are not allowed. (COMMAND.COM, DATE, etc.)
  • 2. Types of files in DOS  There are different types of files, according to the usage. To differentiate each file, the computer will give an extension to identify the different types of files, which are :  Executable Files:  The files with extension of either .COM or .EXE are called executable files. These files are directly executed by typing their names (without the extension) by the computer. A file with .COM extension refers to COMMAND file name and the other with .EXE extension refers EXECUTABLE program file.  Batch Files:  The file containing a series of DOS commands, which are executed automatically one at a time in the order entered, is known as the batch file. A batch file has the extension .BAT. If the batch file is given a special name AUTOEXEC.BAT, it is automatically executed when the computer is switched on or during booting.  Backup Files:  These are backup files of a file and have extension .BAK. These files are such that their contents can not be altered (edited). These files are created while working with WORDSTAR package for typing a document.  System Files:  These are program files developed for system control. They have .SYS extension.
  • 3. .  Directory: It is a collection of files, size, date and time of creation of files.  The main directory of a drive is called Root Directory into which several directories and sub- directories may exist.  Folder: It is a collection of files. Types of DOS commands:  There are two types of commands:  i) Internal Commands  ii) External Commands i) Internal DOS commands:  Internal commands are those commands which manage files.  They are loaded into the memory of the PC when PC is booted.  These are stored in a large file with file name COMMAND.COM, when a PC is booted.
  • 4. Internal Commands: 1. DIR: Dir displays continuously the directory of file names, file size, date and time of creation.  C:>dir d:  This command displays the list of files and directories from the drive D.  It can be specified with two options:  i) Dir/p: It displays files pagewise.  ii) Dir/w: displays the files of the directory in a five column format. Only file names and their extensions will be displayed without the date and time of creation.  In addition, DIR can also be specified with wildcard characters (such as * or ?) to list files sharing a common element in the file name or extension.  Eg: DIR STATS.* : lists all files with STATS and other combinations along with the extensions.  DIR *.COM : lists all files with extension .COM 2. DEL: Deletes a specified file. Syntax: DEL {filename} ↵ Ex. Del resume ↵  Suppose you want to delete a file COMPUTER.DOC on A drive, the command will be:  C:> DEL A: COMPUTER.DOC ↵
  • 5. . 3. COPY: The COPY command is used to copy files from one place to another.  Syntax: copy {Drive name} <source file> {Drive name} <target file name>  Ex. COPY A:MATHS C:STATS ↵ 4. REN: The REN command is used to rename the old file with another name. Syntax: REN Old file name New file name Ex. C:> REN MATHS.TXT RESULT.TXT ↵ 5. DATE: It displays current date and asks for new date in (mm)-(dd)-(YY) format.  Syntax: C:> Date ↵ 6. TIME: It displays current time and asks for new tine and if no new time is to be entered press enter.  Syntax: C:> Time ↵  7.VER: displays the version of DOS  Syntax: C:> VER ↵  8.CLS : when you want to clear the screen, type in the following command:  C:> CLS ↵
  • 6. ii) External commands: External commands are small file programs used for doing specific jobs.  1. SORT: It sorts the files in alphanumeric order: either A to Z or Z to A  DIR| SORT (or) DIR/ON : Displays all the files in A to Z order  2. FORMAT: Formatting a (new) disk imply organizing the new disk into magnetic tracks and  sectors that are readable by DOS. The PC copies files only on a formatted disk.  FORMAT a: formats disk in drive ―A‖  3. VOL: This command displays the volume label of the current disk  4. LABEL: It is used to create, change or delete the volume label on the disk  5. PATH: It is used to provide access to files located on other directories or on other disks.  Thus while in ―C‖ drive, one can directly invoke files of DOS, WORDSTAR (WS) directories by giving the following command:  PATH = C:DOS; C:WS
  • 7. . 6. MD: It is used to make a new directory (or sub-directory) which is subordinate to the current (or root) directory. It is specified as follows:  C:> MDSTATS (or) MD STATS : This command makes (creates) a new directory with  the name ― STATS.  7. CD : It is used to change from one directory to the other.  If we have to work with files in the directory ―STATS‖, the directory has to be changed  to ―STATS‖  Ex: C:>CD STATS (or) CD STATS : This command changes the root directory to the  directory ―STATS‖.  8. RD: It removes or deletes a directory. To remove a directory.  To remove the directory STATS, the command is C:> RD STATS21  9. TREE: It displays the directories and sub-directories existing in a drive with a ―TREE diagram.