SlideShare a Scribd company logo
Internal commands




                    http://improvec.blogspot.in/
                                                   1
Objective

On completion of this period, you would be able
 to know

        Conventions used

        Internal commands




               http://improvec.blogspot.in/
                                              2
Recap


DOS commands are divided into

          Internal Commands

          External Commands




                http://improvec.blogspot.in/
                                               3
Prerequisite

What is meant by command

         An instruction which is used to
          communicate with a computer system

         We call this instruction a command




                http://improvec.blogspot.in/
                                               4
Internal Commands

 Internal commands are built–in commands

 These commands are in COMMAND.COM
  program

 This program is loaded with the operating
  system into the memory during booting



                  http://improvec.blogspot.in/
                                                 5
Internal Commands (contd)


 Remains resident in the memory as long as
  the computer is on

 Hence they are always available to be
  executed




                http://improvec.blogspot.in/
                                               6
Convention used in Command descriptions
                   are

 [] (BRACKETS)
    Items within brackets are optional

 DRIVE
    It refers to the drive name.
    Example: C: A: B: etc


                  http://improvec.blogspot.in/
                                                 7
Convention used in Command descriptions
              are (contd)
 PATH
    It refers to a directory name
    Syntax :[drive_directory] [directory…] directory


 PATHNAME
     It mentions the files that are to be referred in
 the path. It is used to locate a file
    Syntax : [drive_directory] [directory…] filename


                  http://improvec.blogspot.in/
                                                      8
Convention used in Command descriptions
             are (contd)
 SWITCHES

     These switches control MS – DOS
 commands. They should always begin with a
 forward slash (/)

    Example: /p /w etc


                http://improvec.blogspot.in/
                                               9
Convention used in Command descriptions
             are (contd)
 WILDCARDS


      If we want to carry out a task for a group of
 files whose names have something in common,
 we can use wildcard characters to specify
 groups of files




                  http://improvec.blogspot.in/
                                                      10
Wild characters
DOS recognizes two wildcard characters

 Asterisk(*) – represents one or more characters
  that a group of files has in common

 Question mark(?) – represents a single
  character that a group of files has in common




                   http://improvec.blogspot.in/
                                                    11
Examples of wildcards
 *.txt : All files with .txt extension
  Examples are letter.txt, july.txt, and message.txt

 report.* - All files named report with any
  extension.
  Examples: report.txt, report.let and report.wri.




                   http://improvec.blogspot.in/
                                                     12
Examples of wildcards (contd)

 M*.* : All files beginning with the letter M
  regardless of extension.
  Example are march.xls, memo.txt and
  madhavi.lvu

 ???.* : all files having 3 or less characters with
 or without any extensions.
 Examples are sun.bmp, son.bm and ab.x



                    http://improvec.blogspot.in/
                                                       13
Internal Commands

 CLS- Clears the screen, takes the cursor to the
 top left and the system Prompt appears at top
 left

 VER – It displays the MS-DOS version

 DEL/ERASE [drive:] pathname – It deletes the
  specified file or files. The wildcards (* and ?) can
  be used with del command to delete more than
  one file at a time
                    http://improvec.blogspot.in/
                                                     14
Internal Commands (contd)

 VOL [drive] – It displays the disk volume label
 which is optionally declared at the time of
 formatting

  Example:
     C:>VOL A :

  Result
     Volume in drive A is DBASEIII
     Volume Serial Number is 0909-07BE
                   http://improvec.blogspot.in/
                                                    15
Internal Commands (contd)

 PROMPT [[text] [$character]…] – It changes the
  MS-DOS command prompt. $ character prompts
  are below

    $t   Current time              $l             <
    $d Current date               $q              =
    $n Drive letter               $$              $
    $p Directory                  $e              Escape
    $v   Version number           $g              >
                                   $h             Backspace
    $_   Return-Linefeed
                   http://improvec.blogspot.in/
                                                              16
Internal Commands (contd)

 DATE [mm- dd- yy] - It displays or sets the date

  Example:
     C>DATE

  Result:
     Current date is FRI 21-04-07
     Enter the new date (mm- dd- yy): 20-04-08
     Now the current date will be SUN 20-04-08

                  http://improvec.blogspot.in/
                                                 17
Internal Commands (contd)


 TIME [hours : minutes : seconds . Hundredths]

  It allows to enter or change the time of the
  system and see the current time

  To type a new time, the valid values are hours is
  0-23, minutes is 0-59, seconds is 0-59 and
  hundredths of seconds 0-99

                   http://improvec.blogspot.in/
                                                  18
Internal Commands (contd)

Example1
   C>TIME

Result
   Current time is 1:28:40.51
   Enter the new time : 11:07:51.21
   Now the current time will be ’11:07:51.21


                http://improvec.blogspot.in/
                                               19
Internal Commands (contd)

Example2
   C>TIME 12:07:59
   C>TIME

Result
   Current time is 12:07:59
   Enter the new time :


                http://improvec.blogspot.in/
                                               20
Internal Commands (contd)


 PATH [drive:] [path] [;[drive:] [path]…]


  It sets a command search path for programs not
  in the current directory

  The above command is used to search more
  than one path by specifying several paths
  separated by semicolons
                   http://improvec.blogspot.in/
                                                  21
Internal Commands (contd)

 DIR [drive:] [pathname] [/p] [/w] – To list the files
  in a directory. Wildcards can also be used with
  Dir command

  Example1
     C>DIR

  Result
     Volume in drive C is DOS400
                    http://improvec.blogspot.in/
                                                      22
Internal Commands (contd)

Directory of C:vinay
.       <dir>          1-11-90   1:05
..      <dir>          1-09-90 13:05
BASIC EXE 67520 19-12-90          2:13
BUDGET BAS 814 1-01-91            1:45
FINAN90 BAS 3456 7-07-90          7:34
   5 File (s) 4329472 bytes free


              http://improvec.blogspot.in/
                                             23
Internal Commands (contd)


Example2
   C>DIR/W

Result
    Selects wide display and lists up to files lines
per line


                 http://improvec.blogspot.in/
                                                   24
Internal Commands (contd)

Example3
   C>DIR/P

Result
    Selects page mode and makes the directory
display to pause once the screen is filled
    To resume scrolling the display any key can
be pressed

                http://improvec.blogspot.in/
                                               25
Internal Commands (contd)

 TYPE [drive] filename – It displays the contents
  of a text file on the screen

  Example:
     C>TYPE message.dat>PRN

  Result
      It sends the contents of file “message.dat” to
  the printer
                   http://improvec.blogspot.in/
                                                     26
Internal Commands (contd)

 COPY [drive:] [pathname] [drive:] [pathnamr2] –
  It copies one or more files to another location

  COPY pathname1 + pathname2 […]pathname..
  It appends the files. Wildcards can also be used
  with copy command




                  http://improvec.blogspot.in/
                                                 27
Internal Commands (contd)


Example1
   C>copy bpay.rpt basicpay.rpt

Result
    It copies a file named ‘bpay.rpt’ in the same
drive as
    another name called ‘basicpay.rpt’

                 http://improvec.blogspot.in/
                                                    28
Internal Commands (contd)

Example2
   C>copy BPAY.RPT A:PROLL.RPT

Result
    It copies a file bpay.rpt from current drive C
to drive A named as proll.rpt




                 http://improvec.blogspot.in/
                                                     29
Internal Commands (contd)

Example3
   C>COPY *.rpt + ref.txt summary.doc

Result
     the above copy command combines all *.rpt
files and ref.txt files and stores in filename called
summary.doc



                  http://improvec.blogspot.in/
                                                   30
Internal Commands (contd)

 MKDIR/MD [drive:] path – This command
  creates required directory

 Example
    C>MKDIR letters

 Result
    It the above example, the command is used
 to create a directory named letters
                http://improvec.blogspot.in/
                                                31
Internal Commands (contd)

 CHDIR/CD [path] – It changes the current
  directory for the specified directory

  Example
     C>CHDIR division

  Result
      The above command changes the working
  directory to the directory called ‘division’
                 http://improvec.blogspot.in/
                                                 32
Internal Commands (contd)
 RMDIR/RD [drive:] path – It removes a directory
  from a directory structure

  Example
     C>RMDIR varsham

  Result
      The above command is used to remove the
  directory named varsham
      Before removing the directory entirely, the
  directory should be empty.

                  http://improvec.blogspot.in/
                                                    33
Summary

In this class, we have learnt about

           Internal commands – COPY, DEL,
            DIR, TYPE, CD, MD, RD, MODE,
            PATH, DATE, TIME, COPY CON etc.




                   http://improvec.blogspot.in/
                                                  34
Frequently Asked Questions

1. List any four DOS internal commands

2. What is DOS internal command?

3. Explain any four internal commands in DOS.




                 http://improvec.blogspot.in/
                                                35
Quiz

 Internal commands are _________
Answer: built in commands




               http://improvec.blogspot.in/
                                              36
Quiz

 The instructions which are used to communicate
  with the computer system
  a. instructions
  b. commands
Answer: b




                 http://improvec.blogspot.in/   37
                                                37

More Related Content

PDF
Ms dos full explanation
PPT
Batch file programming
PDF
5_File_Handling_Commands__vi_editor_and_environment_variables
PPT
Xternal commands.31
PPTX
PPTX
Batch FIles
PPT
Sandy Report
Ms dos full explanation
Batch file programming
5_File_Handling_Commands__vi_editor_and_environment_variables
Xternal commands.31
Batch FIles
Sandy Report

What's hot (17)

PPT
101 3.4 use streams, pipes and redirects
PDF
Basic commands
PDF
4_Users_and_File_Permission_and_Directory_Commands
PDF
linux-commandline-magic-Joomla-World-Conference-2014
DOCX
Windows 7 command prompt commands
PDF
Bozorgmeh os lab
PPTX
Command-Line 101
PDF
PDF
Operating system lab manual
PDF
Unix Command Line Productivity Tips
DOCX
Linux basic commands
PDF
Os lab manual
PPT
Linux commands
DOCX
Linux, PHP, SMS - USSD Examination
PPSX
LEARNING MS DOS BASIC
DOC
PPT
Linux commands
101 3.4 use streams, pipes and redirects
Basic commands
4_Users_and_File_Permission_and_Directory_Commands
linux-commandline-magic-Joomla-World-Conference-2014
Windows 7 command prompt commands
Bozorgmeh os lab
Command-Line 101
Operating system lab manual
Unix Command Line Productivity Tips
Linux basic commands
Os lab manual
Linux commands
Linux, PHP, SMS - USSD Examination
LEARNING MS DOS BASIC
Linux commands
Ad

Viewers also liked (20)

PPT
Storage devices used in cmp13to14
PPTX
Features of windows
PPT
Installing modem,printer.47
PPT
Drive space.45
PPT
System date and time.50
PPT
Bin to hexa.22to23
PPT
Dec to bin.20
PPTX
Directories 32(1)
PPT
Installing & uninstaling hardware.44
PPTX
Config 32(3)
PPT
Find option.39
PPT
Bin to dec.21
PPT
Accessing display properties.48to49
PPT
Number systems.17
PPT
File.32
PPTX
Hexa to binary
PPTX
Registers 9(1)
PPT
Using start button.37
PPT
Classification of comp.16
PPT
Uninstalling.43
Storage devices used in cmp13to14
Features of windows
Installing modem,printer.47
Drive space.45
System date and time.50
Bin to hexa.22to23
Dec to bin.20
Directories 32(1)
Installing & uninstaling hardware.44
Config 32(3)
Find option.39
Bin to dec.21
Accessing display properties.48to49
Number systems.17
File.32
Hexa to binary
Registers 9(1)
Using start button.37
Classification of comp.16
Uninstalling.43
Ad

Similar to Internal commands.29to30 (20)

PPT
Dos commad. by ammar nawab ppt
PPTX
DOS commands
DOCX
Comp practical
PPTX
Ms DOS
PPTX
DOS PRESENTATION FROM INFORMATION AND TECNOLOGY PACKAGES SPECIALLY FOR COMPUT...
DOCX
Internal commands of dos
PPT
Lab1-1.ppt
DOC
PC Software - Computer Application - Office Automation Tools
PPT
Introduction to ms dos
PPTX
10 MS DOS and Its Commands.pptx .related to
PDF
Hhs en02 windows_and_linux
PDF
Command
DOCX
Martin
PPT
Command line interface
DOC
20 C programs
PDF
33269198 all-commands-in-ms-dos
PDF
33269198 all-commands-in-ms-dos(1)
PPTX
DOS - Disk Operating System
PPTX
PPT4-Windows CLI.pptx
PDF
CMD Command prompts
Dos commad. by ammar nawab ppt
DOS commands
Comp practical
Ms DOS
DOS PRESENTATION FROM INFORMATION AND TECNOLOGY PACKAGES SPECIALLY FOR COMPUT...
Internal commands of dos
Lab1-1.ppt
PC Software - Computer Application - Office Automation Tools
Introduction to ms dos
10 MS DOS and Its Commands.pptx .related to
Hhs en02 windows_and_linux
Command
Martin
Command line interface
20 C programs
33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos(1)
DOS - Disk Operating System
PPT4-Windows CLI.pptx
CMD Command prompts

More from myrajendra (20)

PPT
Fundamentals
PPT
Data type
PPTX
Hibernate example1
PPTX
Jdbc workflow
PPTX
2 jdbc drivers
PPTX
3 jdbc api
PPTX
4 jdbc step1
PPTX
Dao example
PPTX
Sessionex1
PPTX
Internal
PPTX
3. elements
PPTX
2. attributes
PPTX
1 introduction to html
PPTX
Headings
PPTX
Forms
PPT
PPTX
Views
PPTX
Views
PPTX
Views
PPT
Starting jdbc
Fundamentals
Data type
Hibernate example1
Jdbc workflow
2 jdbc drivers
3 jdbc api
4 jdbc step1
Dao example
Sessionex1
Internal
3. elements
2. attributes
1 introduction to html
Headings
Forms
Views
Views
Views
Starting jdbc

Internal commands.29to30

  • 1. Internal commands http://improvec.blogspot.in/ 1
  • 2. Objective On completion of this period, you would be able to know Conventions used Internal commands http://improvec.blogspot.in/ 2
  • 3. Recap DOS commands are divided into Internal Commands External Commands http://improvec.blogspot.in/ 3
  • 4. Prerequisite What is meant by command An instruction which is used to communicate with a computer system We call this instruction a command http://improvec.blogspot.in/ 4
  • 5. Internal Commands  Internal commands are built–in commands  These commands are in COMMAND.COM program  This program is loaded with the operating system into the memory during booting http://improvec.blogspot.in/ 5
  • 6. Internal Commands (contd)  Remains resident in the memory as long as the computer is on  Hence they are always available to be executed http://improvec.blogspot.in/ 6
  • 7. Convention used in Command descriptions are  [] (BRACKETS) Items within brackets are optional  DRIVE It refers to the drive name. Example: C: A: B: etc http://improvec.blogspot.in/ 7
  • 8. Convention used in Command descriptions are (contd)  PATH It refers to a directory name Syntax :[drive_directory] [directory…] directory  PATHNAME It mentions the files that are to be referred in the path. It is used to locate a file Syntax : [drive_directory] [directory…] filename http://improvec.blogspot.in/ 8
  • 9. Convention used in Command descriptions are (contd)  SWITCHES These switches control MS – DOS commands. They should always begin with a forward slash (/) Example: /p /w etc http://improvec.blogspot.in/ 9
  • 10. Convention used in Command descriptions are (contd)  WILDCARDS If we want to carry out a task for a group of files whose names have something in common, we can use wildcard characters to specify groups of files http://improvec.blogspot.in/ 10
  • 11. Wild characters DOS recognizes two wildcard characters  Asterisk(*) – represents one or more characters that a group of files has in common  Question mark(?) – represents a single character that a group of files has in common http://improvec.blogspot.in/ 11
  • 12. Examples of wildcards  *.txt : All files with .txt extension Examples are letter.txt, july.txt, and message.txt  report.* - All files named report with any extension. Examples: report.txt, report.let and report.wri. http://improvec.blogspot.in/ 12
  • 13. Examples of wildcards (contd)  M*.* : All files beginning with the letter M regardless of extension. Example are march.xls, memo.txt and madhavi.lvu  ???.* : all files having 3 or less characters with or without any extensions. Examples are sun.bmp, son.bm and ab.x http://improvec.blogspot.in/ 13
  • 14. Internal Commands  CLS- Clears the screen, takes the cursor to the top left and the system Prompt appears at top left  VER – It displays the MS-DOS version  DEL/ERASE [drive:] pathname – It deletes the specified file or files. The wildcards (* and ?) can be used with del command to delete more than one file at a time http://improvec.blogspot.in/ 14
  • 15. Internal Commands (contd)  VOL [drive] – It displays the disk volume label which is optionally declared at the time of formatting Example: C:>VOL A : Result Volume in drive A is DBASEIII Volume Serial Number is 0909-07BE http://improvec.blogspot.in/ 15
  • 16. Internal Commands (contd)  PROMPT [[text] [$character]…] – It changes the MS-DOS command prompt. $ character prompts are below $t Current time $l < $d Current date $q = $n Drive letter $$ $ $p Directory $e Escape $v Version number $g > $h Backspace $_ Return-Linefeed http://improvec.blogspot.in/ 16
  • 17. Internal Commands (contd)  DATE [mm- dd- yy] - It displays or sets the date Example: C>DATE Result: Current date is FRI 21-04-07 Enter the new date (mm- dd- yy): 20-04-08 Now the current date will be SUN 20-04-08 http://improvec.blogspot.in/ 17
  • 18. Internal Commands (contd)  TIME [hours : minutes : seconds . Hundredths] It allows to enter or change the time of the system and see the current time To type a new time, the valid values are hours is 0-23, minutes is 0-59, seconds is 0-59 and hundredths of seconds 0-99 http://improvec.blogspot.in/ 18
  • 19. Internal Commands (contd) Example1 C>TIME Result Current time is 1:28:40.51 Enter the new time : 11:07:51.21 Now the current time will be ’11:07:51.21 http://improvec.blogspot.in/ 19
  • 20. Internal Commands (contd) Example2 C>TIME 12:07:59 C>TIME Result Current time is 12:07:59 Enter the new time : http://improvec.blogspot.in/ 20
  • 21. Internal Commands (contd)  PATH [drive:] [path] [;[drive:] [path]…] It sets a command search path for programs not in the current directory The above command is used to search more than one path by specifying several paths separated by semicolons http://improvec.blogspot.in/ 21
  • 22. Internal Commands (contd)  DIR [drive:] [pathname] [/p] [/w] – To list the files in a directory. Wildcards can also be used with Dir command Example1 C>DIR Result Volume in drive C is DOS400 http://improvec.blogspot.in/ 22
  • 23. Internal Commands (contd) Directory of C:vinay . <dir> 1-11-90 1:05 .. <dir> 1-09-90 13:05 BASIC EXE 67520 19-12-90 2:13 BUDGET BAS 814 1-01-91 1:45 FINAN90 BAS 3456 7-07-90 7:34 5 File (s) 4329472 bytes free http://improvec.blogspot.in/ 23
  • 24. Internal Commands (contd) Example2 C>DIR/W Result Selects wide display and lists up to files lines per line http://improvec.blogspot.in/ 24
  • 25. Internal Commands (contd) Example3 C>DIR/P Result Selects page mode and makes the directory display to pause once the screen is filled To resume scrolling the display any key can be pressed http://improvec.blogspot.in/ 25
  • 26. Internal Commands (contd)  TYPE [drive] filename – It displays the contents of a text file on the screen Example: C>TYPE message.dat>PRN Result It sends the contents of file “message.dat” to the printer http://improvec.blogspot.in/ 26
  • 27. Internal Commands (contd)  COPY [drive:] [pathname] [drive:] [pathnamr2] – It copies one or more files to another location COPY pathname1 + pathname2 […]pathname.. It appends the files. Wildcards can also be used with copy command http://improvec.blogspot.in/ 27
  • 28. Internal Commands (contd) Example1 C>copy bpay.rpt basicpay.rpt Result It copies a file named ‘bpay.rpt’ in the same drive as another name called ‘basicpay.rpt’ http://improvec.blogspot.in/ 28
  • 29. Internal Commands (contd) Example2 C>copy BPAY.RPT A:PROLL.RPT Result It copies a file bpay.rpt from current drive C to drive A named as proll.rpt http://improvec.blogspot.in/ 29
  • 30. Internal Commands (contd) Example3 C>COPY *.rpt + ref.txt summary.doc Result the above copy command combines all *.rpt files and ref.txt files and stores in filename called summary.doc http://improvec.blogspot.in/ 30
  • 31. Internal Commands (contd)  MKDIR/MD [drive:] path – This command creates required directory Example C>MKDIR letters Result It the above example, the command is used to create a directory named letters http://improvec.blogspot.in/ 31
  • 32. Internal Commands (contd)  CHDIR/CD [path] – It changes the current directory for the specified directory Example C>CHDIR division Result The above command changes the working directory to the directory called ‘division’ http://improvec.blogspot.in/ 32
  • 33. Internal Commands (contd)  RMDIR/RD [drive:] path – It removes a directory from a directory structure Example C>RMDIR varsham Result The above command is used to remove the directory named varsham Before removing the directory entirely, the directory should be empty. http://improvec.blogspot.in/ 33
  • 34. Summary In this class, we have learnt about Internal commands – COPY, DEL, DIR, TYPE, CD, MD, RD, MODE, PATH, DATE, TIME, COPY CON etc. http://improvec.blogspot.in/ 34
  • 35. Frequently Asked Questions 1. List any four DOS internal commands 2. What is DOS internal command? 3. Explain any four internal commands in DOS. http://improvec.blogspot.in/ 35
  • 36. Quiz  Internal commands are _________ Answer: built in commands http://improvec.blogspot.in/ 36
  • 37. Quiz  The instructions which are used to communicate with the computer system a. instructions b. commands Answer: b http://improvec.blogspot.in/ 37 37