SlideShare a Scribd company logo
MS-DOS
 TUTORIAL
     Created By



  EHTISHAM ALI



       START
Choose one of the following options:




         How to start MS-DOS



           Important Tips



     DOS Commands - Quick Review



            Exit Tutorial
Starting MS-DOS                                                Main Menu   X
     Press [win+r] from your keyboard to pop-up Run window.
     Type [cmd] and press [Enter]
     Now a command prompt window will appear.
Important Tips                                                                Main Menu            X
     In command prompt by default your are in system root drive (c:) with user account.
              for example  C:Documents And Settings

     There are two types of commands External and Internal generally we use Internal commands.

     By default your active drive is C, any command you enter is for active drive.

     To have general help in command prompt type help and press enter or to get help for a
      specific command type the name of command added with /?
              for example  tree/?

     To repeat a command press upward arrow from keyboard.

     To stop any processing command press Ctrl+C.

     To copy any information displayed in command prompt go to the top left corner of command
      prompt window and while clicking on it you get a menu, from there select Edit then Mark.

      Now highlight the area of text you want to copy and press Enter. After pressing Enter your
      selected text has been stored to clipboard. Now open any word processor or simply notepad
      and paste copied data here(Ctrl+V)   Show Images

     Commands are always same whether you type in uppercase or lowercase.

     Press Alt+Enter to run command prompt in full screen.
DOS Commands                                                                  Main Menu             X
     Use all commands at your own risk.
     Only some basic and frequently used commands are listed here.
     Explanation and syntax of some commands is modified to make it simpler for non IT students.




             Click a command to view its usage and examples.

 ATTRIB      CHKDSK       DATE        EDIT       FORMAT       HELP       LABEL      MD      TIME
               CLS       DEFRAG       EXIT                                                  TREE
              COPY         DEL
                           DIR




All commands are tested on windowXP sp2
with MS-DOS version 5.1.2600
ATTRIB                                                           Open         BACK to
                                                                                                 X
                                                                MS-DOS      Command List
 Changes or displays the attributes of a file.


 SYNTAX
  attrib drive:pathfile(with file extension) /switches

 SWITCHES
  +R   Changes specified file to read-only, which means the file cannot be overwritten or erased


  -R   Changes specified file to read-write, which means the file may be overwritten or erased


  +A   Changes file setting to archived.


  -A   Changes file setting to not archived.


  +H   Changes specified file to hidden, which means the file will not be visible in explorer.


  -H   Makes hidden files visible again.


  +S   Marks specified file as system files (super hidden).


  -S   Removes system attributes from file.


 EXAMPLE
  attrib d:musicrehman.mp3 +s +h

  attrib e:bollywallpapershotkatrina.jpg +r -h +a
CHKDSK                                                           Open       BACK to
                                                                                         X
                                                                MS-DOS    Command List
 Analyzes, diagnoses, and optionally corrects common
 hard-disk errors.

 SYNTAX
  chkdsk   drive: /switches

 SWITCHES
  /f   Enables auto-correction mechanism. When lost clusters are found.




 EXAMPLE
  chkdsk c: /f

  chkdsk d:
CLS                                          Open      BACK to
                                                                    X
                                            MS-DOS   Command List
 Clears the dos screen.


 SYNTAX
  cls

 SWITCHES
  There are no switches for this command.
COPY                                                              Open         BACK to
                                                                                               X
                                                                 MS-DOS      Command List
 Copies and hence can overwrite files.


 SYNTAX
  Copy sourcedrive:pathfile targetdrive:path /switches

 SWITCHES
  /y    Forces overwriting of existing files with same name, without prompting you to overwrite.


  /-y   Force DOS to prompt for conformation before overwriting existing files.



 EXAMPLE
  copy h:musicairtel.mp3 d:ringtone /y

  copies airtel.mp3 from music folder in H drive to ringtone folder in D drive
  without asking you to overwrite if it already exist there.


  copy h:musicairtel.mp3 d:ringtone /-y

  copies airtel.mp3 from music folder in H drive to ringtone folder in D drive. It
  will prompt you for confirmation to overwrite existing file.
DATE                                              Open      BACK to
                                                                         X
                                                 MS-DOS   Command List
 Displays the current date and prompts you to
 enter another. To leave the date unchanged,
 press Enter.


 SYNTAX
  date

 SWITCHES
  This command have no switches.



 EXAMPLE


  Date

  Displays the current date and prompts you enter new.
DEFRAG                                                     Open      BACK to
                                                                                  X
                                                          MS-DOS   Command List
 Speeds up disk performance by reorganizing
 fragmented files.

 SYNTAX
  defrag sourcedrive: /switches

 SWITCHES
  -f   Forces defragmentation


  -a   Analyze only



 EXAMPLE
  defrag h: -a

  Only analyze H drive if there exists any fragmented files.


  defrag h: -f

  Force defragmentation on H drive.
DEL                                                     Open      BACK to
                                                                               X
                                                       MS-DOS   Command List
 This command can erase or overwrite your files.

 Delete Files
 SYNTAX
  del sourcedrive:pathfile

 SWITCHES
  This command do not have any switches.



 EXAMPLE


  del h:musicairtel.mp3

  deletes airtel.mp3 from music folder in H drive to




           Use this command cautiously
DIR                                                               Open         BACK to
                                                                                            X
                                                                 MS-DOS      Command List
 Displays a list of files and
 directories(folders) stored in a drive.

 SYNTAX
  dir sourcedrive:path /switches

 SWITCHES
  /a:d    Displays all folders stored in the drive or path specified.


  /a:h    Displays all hidden files and folders stored in the drive or path specified.


  /s      Displays all folders with files contained in them in a sorted manner


 EXAMPLE
  dir h:music

  Shows all files and folders stored in music folder on H drive

  dir h:music /a:d

  Shows only folders stored in music folder on H drive

  dir h:music /a:h

  Shows all hidden files and folders stored in music folder on H drive

  dir h:music /s

  Shows all folders (in music folder on H drive) with files contained in them
  in a sorted manner
EDIT                                                  Open       BACK to
                                                                              X
                                                     MS-DOS    Command List
 It is a simple text editor for MS-DOS

 It can also open a text file from specified location
 for editing. (images)


 SYNTAX
  edit sourcedrive:pathfile

 SWITCHES

  This command do not have any switches.




 EXAMPLE
  edit

  opens the editor window.

  edit h:musicali.txt

  opens the editor window with the file ali.txt stored in music folder of H
  drive.
EXIT                                                Open      BACK to
                                                                           X
                                                   MS-DOS   Command List
 It simply brings you out of the command prompt.

 Exits MS-DOS


 SYNTAX
  exit
FORMAT                                                            Open         BACK to
                                                                                                X
                                                                 MS-DOS      Command List
 This command can format your whole drive with
 a new file system.

 SYNTAX
  format sourcedrive: /switches

 SWITCHES
  /fs:    Specify file system ntfs, fat or fat32.


  /v:     Specify new volume label.


  /x      Forces volume to dismount first if necessary. all opened handles to that volume will be
          inaccessible.


 EXAMPLE

  format h: /fs:ntfs /v:misc /x

  formats H drive by ntfs file system with new volume label as misc




            Use this command cautiously
HELP                                              Open      BACK to
                                                                         X
                                                 MS-DOS   Command List
 Displays help for various commands in MS-DOS.


 SYNTAX
  help

 SWITCHES
  There are no switches for this command.
LABEL                                                  Open      BACK to
                                                                              X
                                                      MS-DOS   Command List
 Adds or modifies a disk volume label.


 SYNTAX
  label sourcedrive:

 SWITCHES
  There are no switches for this command.


 EXAMPLE

  label H:misc

  This will change volume label of H drive to misc.
MD                                                       Open       BACK to
                                                                                 X
                                                        MS-DOS    Command List
 Creates a new folder at specified path.


 SYNTAX
     md sourcedrive:path

 SWITCHES
     There are no switches for this command.


 EXAMPLE

     md H:musicali_new

     This will create a new folder in music folder of H drive by the name
     ali_new
TIME                                                  Open       BACK to
                                                                              X
                                                     MS-DOS    Command List
 Display and allow changes to the system time.


 SYNTAX
  time

 SWITCHES
  There are no switches for this command.


 EXAMPLE

  time

  This will display the current time and prompt you to enter new time.

  If you do not want to change simply press Enter.
TREE                                                  Open       BACK to
                                                                                X
                                                     MS-DOS    Command List
 Display the file-folder structure of the drive
 or folder specified.

 SYNTAX
  tree sourcedrive: /switches

 SWITCHES
  /f   Includes the filenames in each subfolder.




 EXAMPLE

  tree h:

  displays all folders with there subfolders of H drive.

  tree h: /f

  displays all folders with there subfolders and files contained in them of H
  drive.

More Related Content

What's hot

Basic dos-commands
Basic dos-commandsBasic dos-commands
Basic dos-commands
parag dhok
 
Ms DOS
Ms DOSMs DOS
Ms DOS
Gunjan Singh
 
Internal commands.29to30
Internal commands.29to30Internal commands.29to30
Internal commands.29to30
myrajendra
 
CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command prompts
Ahmed Hesham
 
DOS - Disk Operating System
DOS - Disk Operating SystemDOS - Disk Operating System
DOS - Disk Operating System
Meqdad Darweesh
 
Disk operating system
Disk operating systemDisk operating system
Disk operating system
Raza Jaan
 
Comands of dos
Comands of dosComands of dos
Comands of dos
Muhammad Zohaib
 
Dos commands new
Dos commands new Dos commands new
Dos commands new
suraj pandey
 
Bba ii cam u i-operating system concept
Bba ii cam  u i-operating system conceptBba ii cam  u i-operating system concept
Bba ii cam u i-operating system concept
Rai University
 
Disk Operating systems
Disk Operating systemsDisk Operating systems
Disk Operating systems
alemay villegas
 
Lect basic computer
Lect basic computer Lect basic computer
Lect basic computer
susir
 
MS-DOS
MS-DOSMS-DOS
Dos
DosDos
A z index of the windows cmd command line
A z index of the windows cmd command lineA z index of the windows cmd command line
A z index of the windows cmd command line
proser tech
 
CMD Command
CMD CommandCMD Command
CMD Command
Chandra Pr. Singh
 
Disk operating system
Disk operating systemDisk operating system
Disk operating system
Hasnahana Chetia
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
Jim Birch
 
ITFT - DOS - Disk Operating System
ITFT - DOS - Disk Operating SystemITFT - DOS - Disk Operating System
ITFT - DOS - Disk Operating System
Blossom Sood
 
Ms dos
Ms dosMs dos
What is-dos-operating-system
What is-dos-operating-systemWhat is-dos-operating-system
What is-dos-operating-system
parag dhok
 

What's hot (20)

Basic dos-commands
Basic dos-commandsBasic dos-commands
Basic dos-commands
 
Ms DOS
Ms DOSMs DOS
Ms DOS
 
Internal commands.29to30
Internal commands.29to30Internal commands.29to30
Internal commands.29to30
 
CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command prompts
 
DOS - Disk Operating System
DOS - Disk Operating SystemDOS - Disk Operating System
DOS - Disk Operating System
 
Disk operating system
Disk operating systemDisk operating system
Disk operating system
 
Comands of dos
Comands of dosComands of dos
Comands of dos
 
Dos commands new
Dos commands new Dos commands new
Dos commands new
 
Bba ii cam u i-operating system concept
Bba ii cam  u i-operating system conceptBba ii cam  u i-operating system concept
Bba ii cam u i-operating system concept
 
Disk Operating systems
Disk Operating systemsDisk Operating systems
Disk Operating systems
 
Lect basic computer
Lect basic computer Lect basic computer
Lect basic computer
 
MS-DOS
MS-DOSMS-DOS
MS-DOS
 
Dos
DosDos
Dos
 
A z index of the windows cmd command line
A z index of the windows cmd command lineA z index of the windows cmd command line
A z index of the windows cmd command line
 
CMD Command
CMD CommandCMD Command
CMD Command
 
Disk operating system
Disk operating systemDisk operating system
Disk operating system
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
 
ITFT - DOS - Disk Operating System
ITFT - DOS - Disk Operating SystemITFT - DOS - Disk Operating System
ITFT - DOS - Disk Operating System
 
Ms dos
Ms dosMs dos
Ms dos
 
What is-dos-operating-system
What is-dos-operating-systemWhat is-dos-operating-system
What is-dos-operating-system
 

Viewers also liked

History of computer
History of computerHistory of computer
History of computer
Roi Fernandez
 
project on visual basic 6.0 ' Jewellery Shop Management'
project on visual basic 6.0 ' Jewellery Shop Management' project on visual basic 6.0 ' Jewellery Shop Management'
project on visual basic 6.0 ' Jewellery Shop Management'
Anitha Krishnappa
 
Apresentação1
Apresentação1Apresentação1
Apresentação1
Leão Fernando
 
Trabajo final Proyeto Emf 2013 J.T
Trabajo final Proyeto Emf 2013 J.TTrabajo final Proyeto Emf 2013 J.T
Trabajo final Proyeto Emf 2013 J.T
Jöhn Cädc
 
20 Meses de Reformas pelo PSD
20 Meses de Reformas pelo PSD20 Meses de Reformas pelo PSD
20 Meses de Reformas pelo PSD
Paulo Machado
 
El Primado de Pedro
El Primado de PedroEl Primado de Pedro
El Primado de Pedro
Miguel Angel
 
Brief imagen publica diciembre 2016
Brief imagen publica diciembre 2016Brief imagen publica diciembre 2016
Brief imagen publica diciembre 2016
Liderazgo Capacitación y Consultoría
 
Barbie
BarbieBarbie
Calidad En Servicios De Salud
Calidad En Servicios De SaludCalidad En Servicios De Salud
Calidad En Servicios De Salud
guest701994
 
WH Deck v.5_Optimized
WH Deck v.5_OptimizedWH Deck v.5_Optimized
WH Deck v.5_Optimized
Lynn Guevara
 
Nanofixit presentation products
Nanofixit presentation productsNanofixit presentation products
Nanofixit presentation products
SeaGreen Distributions LLP
 
CALENDRIER RETRAITES YOGA 2017 ET FORMULE AIRBNB
CALENDRIER RETRAITES YOGA 2017 ET FORMULE AIRBNBCALENDRIER RETRAITES YOGA 2017 ET FORMULE AIRBNB
CALENDRIER RETRAITES YOGA 2017 ET FORMULE AIRBNB
Bénédicte PEROZ
 
Maltrato Infantil
Maltrato InfantilMaltrato Infantil
Maltrato Infantil
Andrea Salazar
 
Il valore dell'integrazione_tra_web_e_gestionali
Il valore dell'integrazione_tra_web_e_gestionaliIl valore dell'integrazione_tra_web_e_gestionali
Il valore dell'integrazione_tra_web_e_gestionali
Marco Russo
 
Marco teorico
Marco teorico Marco teorico
Marco teorico
alejandrogallegosalmazan
 
Bad Grammar Tattoos
Bad Grammar TattoosBad Grammar Tattoos
Bad Grammar Tattoosnoeldrew
 
Ilusion
IlusionIlusion

Viewers also liked (20)

History of computer
History of computerHistory of computer
History of computer
 
project on visual basic 6.0 ' Jewellery Shop Management'
project on visual basic 6.0 ' Jewellery Shop Management' project on visual basic 6.0 ' Jewellery Shop Management'
project on visual basic 6.0 ' Jewellery Shop Management'
 
Apresentação1
Apresentação1Apresentação1
Apresentação1
 
Trabajo final Proyeto Emf 2013 J.T
Trabajo final Proyeto Emf 2013 J.TTrabajo final Proyeto Emf 2013 J.T
Trabajo final Proyeto Emf 2013 J.T
 
20 Meses de Reformas pelo PSD
20 Meses de Reformas pelo PSD20 Meses de Reformas pelo PSD
20 Meses de Reformas pelo PSD
 
El Primado de Pedro
El Primado de PedroEl Primado de Pedro
El Primado de Pedro
 
rice art
rice artrice art
rice art
 
Brief imagen publica diciembre 2016
Brief imagen publica diciembre 2016Brief imagen publica diciembre 2016
Brief imagen publica diciembre 2016
 
Barbie
BarbieBarbie
Barbie
 
Calidad En Servicios De Salud
Calidad En Servicios De SaludCalidad En Servicios De Salud
Calidad En Servicios De Salud
 
WH Deck v.5_Optimized
WH Deck v.5_OptimizedWH Deck v.5_Optimized
WH Deck v.5_Optimized
 
Nanofixit presentation products
Nanofixit presentation productsNanofixit presentation products
Nanofixit presentation products
 
Mao Era
Mao EraMao Era
Mao Era
 
CALENDRIER RETRAITES YOGA 2017 ET FORMULE AIRBNB
CALENDRIER RETRAITES YOGA 2017 ET FORMULE AIRBNBCALENDRIER RETRAITES YOGA 2017 ET FORMULE AIRBNB
CALENDRIER RETRAITES YOGA 2017 ET FORMULE AIRBNB
 
Maltrato Infantil
Maltrato InfantilMaltrato Infantil
Maltrato Infantil
 
Il valore dell'integrazione_tra_web_e_gestionali
Il valore dell'integrazione_tra_web_e_gestionaliIl valore dell'integrazione_tra_web_e_gestionali
Il valore dell'integrazione_tra_web_e_gestionali
 
Marco teorico
Marco teorico Marco teorico
Marco teorico
 
Fitxa sessió
Fitxa sessióFitxa sessió
Fitxa sessió
 
Bad Grammar Tattoos
Bad Grammar TattoosBad Grammar Tattoos
Bad Grammar Tattoos
 
Ilusion
IlusionIlusion
Ilusion
 

Similar to Ms dos tutorial

Msdos crash course
Msdos crash courseMsdos crash course
Msdos crash course
Devinder Prasad
 
ch6.ppsx
ch6.ppsxch6.ppsx
ch6.ppsx
ssuser5ab112
 
Msdos
MsdosMsdos
Msdos
shehla27
 
Dos 16
Dos 16Dos 16
Dos%20commands(1)
Dos%20commands(1)Dos%20commands(1)
Dos%20commands(1)
IDHAMUKI
 
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
 
lab2.pptx.pdf
lab2.pptx.pdflab2.pptx.pdf
lab2.pptx.pdf
ssuser536c36
 
LEARNING MS DOS BASIC
LEARNING MS DOS BASICLEARNING MS DOS BASIC
LEARNING MS DOS BASIC
maccarthy104
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
GiovaRossi
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
GiovaRossi
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
GiovaRossi
 
PC Software - Computer Application - Office Automation Tools
PC Software  -  Computer Application - Office Automation ToolsPC Software  -  Computer Application - Office Automation Tools
PC Software - Computer Application - Office Automation Tools
zatax
 
L1 msdos primer
L1 msdos primerL1 msdos primer
L1 msdos primer
A.S.M Shmimul Islam.
 
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
 
20 C programs
20 C programs20 C programs
20 C programs
navjoth
 
33269198 all-commands-in-ms-dos(1)
33269198 all-commands-in-ms-dos(1)33269198 all-commands-in-ms-dos(1)
33269198 all-commands-in-ms-dos(1)
A.S.M Shmimul Islam.
 
33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos
A.S.M Shmimul Islam.
 
Linux
LinuxLinux
Linux Shortcuts and Commands:
Linux Shortcuts and Commands:Linux Shortcuts and Commands:
Linux Shortcuts and Commands:
wensheng wei
 

Similar to Ms dos tutorial (20)

Msdos crash course
Msdos crash courseMsdos crash course
Msdos crash course
 
ch6.ppsx
ch6.ppsxch6.ppsx
ch6.ppsx
 
Msdos
MsdosMsdos
Msdos
 
Dos 16
Dos 16Dos 16
Dos 16
 
Dos%20commands(1)
Dos%20commands(1)Dos%20commands(1)
Dos%20commands(1)
 
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
 
lab2.pptx.pdf
lab2.pptx.pdflab2.pptx.pdf
lab2.pptx.pdf
 
LEARNING MS DOS BASIC
LEARNING MS DOS BASICLEARNING MS DOS BASIC
LEARNING MS DOS BASIC
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
unix_ref_card.pdf
unix_ref_card.pdfunix_ref_card.pdf
unix_ref_card.pdf
 
PC Software - Computer Application - Office Automation Tools
PC Software  -  Computer Application - Office Automation ToolsPC Software  -  Computer Application - Office Automation Tools
PC Software - Computer Application - Office Automation Tools
 
L1 msdos primer
L1 msdos primerL1 msdos primer
L1 msdos primer
 
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
 
20 C programs
20 C programs20 C programs
20 C programs
 
33269198 all-commands-in-ms-dos(1)
33269198 all-commands-in-ms-dos(1)33269198 all-commands-in-ms-dos(1)
33269198 all-commands-in-ms-dos(1)
 
33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos
 
Linux
LinuxLinux
Linux
 
Linux Shortcuts and Commands:
Linux Shortcuts and Commands:Linux Shortcuts and Commands:
Linux Shortcuts and Commands:
 

More from Ehtisham Ali

Vintage indian advertisement's
Vintage indian advertisement'sVintage indian advertisement's
Vintage indian advertisement's
Ehtisham Ali
 
Extreme Interview Questions
Extreme Interview QuestionsExtreme Interview Questions
Extreme Interview Questions
Ehtisham Ali
 
Windows Avtars
Windows AvtarsWindows Avtars
Windows Avtars
Ehtisham Ali
 
Intruders detection
Intruders detectionIntruders detection
Intruders detection
Ehtisham Ali
 
Digital Signatures
Digital SignaturesDigital Signatures
Digital Signatures
Ehtisham Ali
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
Ehtisham Ali
 
Huffman Coding
Huffman CodingHuffman Coding
Huffman Coding
Ehtisham Ali
 
Windows basic quiz
Windows basic quizWindows basic quiz
Windows basic quiz
Ehtisham Ali
 
Wallpapers show
Wallpapers showWallpapers show
Wallpapers show
Ehtisham Ali
 
Wi fi Technology
Wi fi TechnologyWi fi Technology
Wi fi Technology
Ehtisham Ali
 
Virtual vista
Virtual vistaVirtual vista
Virtual vista
Ehtisham Ali
 
Marketing segmentations
Marketing segmentationsMarketing segmentations
Marketing segmentations
Ehtisham Ali
 
Lcd technology
Lcd technologyLcd technology
Lcd technology
Ehtisham Ali
 
Gd topics list
Gd topics listGd topics list
Gd topics list
Ehtisham Ali
 
Dvd
DvdDvd
My room
My roomMy room
My room
Ehtisham Ali
 
Filmi kids
Filmi kidsFilmi kids
Filmi kids
Ehtisham Ali
 
Excel tutorial on students record
Excel tutorial on students record Excel tutorial on students record
Excel tutorial on students record
Ehtisham Ali
 
Television broadcasting and promotion
Television broadcasting and promotionTelevision broadcasting and promotion
Television broadcasting and promotion
Ehtisham Ali
 
TechQuiz
TechQuizTechQuiz
TechQuiz
Ehtisham Ali
 

More from Ehtisham Ali (20)

Vintage indian advertisement's
Vintage indian advertisement'sVintage indian advertisement's
Vintage indian advertisement's
 
Extreme Interview Questions
Extreme Interview QuestionsExtreme Interview Questions
Extreme Interview Questions
 
Windows Avtars
Windows AvtarsWindows Avtars
Windows Avtars
 
Intruders detection
Intruders detectionIntruders detection
Intruders detection
 
Digital Signatures
Digital SignaturesDigital Signatures
Digital Signatures
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
 
Huffman Coding
Huffman CodingHuffman Coding
Huffman Coding
 
Windows basic quiz
Windows basic quizWindows basic quiz
Windows basic quiz
 
Wallpapers show
Wallpapers showWallpapers show
Wallpapers show
 
Wi fi Technology
Wi fi TechnologyWi fi Technology
Wi fi Technology
 
Virtual vista
Virtual vistaVirtual vista
Virtual vista
 
Marketing segmentations
Marketing segmentationsMarketing segmentations
Marketing segmentations
 
Lcd technology
Lcd technologyLcd technology
Lcd technology
 
Gd topics list
Gd topics listGd topics list
Gd topics list
 
Dvd
DvdDvd
Dvd
 
My room
My roomMy room
My room
 
Filmi kids
Filmi kidsFilmi kids
Filmi kids
 
Excel tutorial on students record
Excel tutorial on students record Excel tutorial on students record
Excel tutorial on students record
 
Television broadcasting and promotion
Television broadcasting and promotionTelevision broadcasting and promotion
Television broadcasting and promotion
 
TechQuiz
TechQuizTechQuiz
TechQuiz
 

Recently uploaded

Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
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
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
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
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
Kavitha Krishnan
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
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
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 

Recently uploaded (20)

Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
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
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
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
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
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...
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 

Ms dos tutorial

  • 1. MS-DOS TUTORIAL Created By EHTISHAM ALI START
  • 2. Choose one of the following options: How to start MS-DOS Important Tips DOS Commands - Quick Review Exit Tutorial
  • 3. Starting MS-DOS Main Menu X  Press [win+r] from your keyboard to pop-up Run window.  Type [cmd] and press [Enter]  Now a command prompt window will appear.
  • 4. Important Tips Main Menu X  In command prompt by default your are in system root drive (c:) with user account. for example C:Documents And Settings  There are two types of commands External and Internal generally we use Internal commands.  By default your active drive is C, any command you enter is for active drive.  To have general help in command prompt type help and press enter or to get help for a specific command type the name of command added with /? for example tree/?  To repeat a command press upward arrow from keyboard.  To stop any processing command press Ctrl+C.  To copy any information displayed in command prompt go to the top left corner of command prompt window and while clicking on it you get a menu, from there select Edit then Mark. Now highlight the area of text you want to copy and press Enter. After pressing Enter your selected text has been stored to clipboard. Now open any word processor or simply notepad and paste copied data here(Ctrl+V) Show Images  Commands are always same whether you type in uppercase or lowercase.  Press Alt+Enter to run command prompt in full screen.
  • 5. DOS Commands Main Menu X  Use all commands at your own risk.  Only some basic and frequently used commands are listed here.  Explanation and syntax of some commands is modified to make it simpler for non IT students. Click a command to view its usage and examples. ATTRIB CHKDSK DATE EDIT FORMAT HELP LABEL MD TIME CLS DEFRAG EXIT TREE COPY DEL DIR All commands are tested on windowXP sp2 with MS-DOS version 5.1.2600
  • 6. ATTRIB Open BACK to X MS-DOS Command List Changes or displays the attributes of a file. SYNTAX attrib drive:pathfile(with file extension) /switches SWITCHES +R Changes specified file to read-only, which means the file cannot be overwritten or erased -R Changes specified file to read-write, which means the file may be overwritten or erased +A Changes file setting to archived. -A Changes file setting to not archived. +H Changes specified file to hidden, which means the file will not be visible in explorer. -H Makes hidden files visible again. +S Marks specified file as system files (super hidden). -S Removes system attributes from file. EXAMPLE attrib d:musicrehman.mp3 +s +h attrib e:bollywallpapershotkatrina.jpg +r -h +a
  • 7. CHKDSK Open BACK to X MS-DOS Command List Analyzes, diagnoses, and optionally corrects common hard-disk errors. SYNTAX chkdsk drive: /switches SWITCHES /f Enables auto-correction mechanism. When lost clusters are found. EXAMPLE chkdsk c: /f chkdsk d:
  • 8. CLS Open BACK to X MS-DOS Command List Clears the dos screen. SYNTAX cls SWITCHES There are no switches for this command.
  • 9. COPY Open BACK to X MS-DOS Command List Copies and hence can overwrite files. SYNTAX Copy sourcedrive:pathfile targetdrive:path /switches SWITCHES /y Forces overwriting of existing files with same name, without prompting you to overwrite. /-y Force DOS to prompt for conformation before overwriting existing files. EXAMPLE copy h:musicairtel.mp3 d:ringtone /y copies airtel.mp3 from music folder in H drive to ringtone folder in D drive without asking you to overwrite if it already exist there. copy h:musicairtel.mp3 d:ringtone /-y copies airtel.mp3 from music folder in H drive to ringtone folder in D drive. It will prompt you for confirmation to overwrite existing file.
  • 10. DATE Open BACK to X MS-DOS Command List Displays the current date and prompts you to enter another. To leave the date unchanged, press Enter. SYNTAX date SWITCHES This command have no switches. EXAMPLE Date Displays the current date and prompts you enter new.
  • 11. DEFRAG Open BACK to X MS-DOS Command List Speeds up disk performance by reorganizing fragmented files. SYNTAX defrag sourcedrive: /switches SWITCHES -f Forces defragmentation -a Analyze only EXAMPLE defrag h: -a Only analyze H drive if there exists any fragmented files. defrag h: -f Force defragmentation on H drive.
  • 12. DEL Open BACK to X MS-DOS Command List This command can erase or overwrite your files. Delete Files SYNTAX del sourcedrive:pathfile SWITCHES This command do not have any switches. EXAMPLE del h:musicairtel.mp3 deletes airtel.mp3 from music folder in H drive to Use this command cautiously
  • 13. DIR Open BACK to X MS-DOS Command List Displays a list of files and directories(folders) stored in a drive. SYNTAX dir sourcedrive:path /switches SWITCHES /a:d Displays all folders stored in the drive or path specified. /a:h Displays all hidden files and folders stored in the drive or path specified. /s Displays all folders with files contained in them in a sorted manner EXAMPLE dir h:music Shows all files and folders stored in music folder on H drive dir h:music /a:d Shows only folders stored in music folder on H drive dir h:music /a:h Shows all hidden files and folders stored in music folder on H drive dir h:music /s Shows all folders (in music folder on H drive) with files contained in them in a sorted manner
  • 14. EDIT Open BACK to X MS-DOS Command List It is a simple text editor for MS-DOS It can also open a text file from specified location for editing. (images) SYNTAX edit sourcedrive:pathfile SWITCHES This command do not have any switches. EXAMPLE edit opens the editor window. edit h:musicali.txt opens the editor window with the file ali.txt stored in music folder of H drive.
  • 15. EXIT Open BACK to X MS-DOS Command List It simply brings you out of the command prompt. Exits MS-DOS SYNTAX exit
  • 16. FORMAT Open BACK to X MS-DOS Command List This command can format your whole drive with a new file system. SYNTAX format sourcedrive: /switches SWITCHES /fs: Specify file system ntfs, fat or fat32. /v: Specify new volume label. /x Forces volume to dismount first if necessary. all opened handles to that volume will be inaccessible. EXAMPLE format h: /fs:ntfs /v:misc /x formats H drive by ntfs file system with new volume label as misc Use this command cautiously
  • 17. HELP Open BACK to X MS-DOS Command List Displays help for various commands in MS-DOS. SYNTAX help SWITCHES There are no switches for this command.
  • 18. LABEL Open BACK to X MS-DOS Command List Adds or modifies a disk volume label. SYNTAX label sourcedrive: SWITCHES There are no switches for this command. EXAMPLE label H:misc This will change volume label of H drive to misc.
  • 19. MD Open BACK to X MS-DOS Command List Creates a new folder at specified path. SYNTAX md sourcedrive:path SWITCHES There are no switches for this command. EXAMPLE md H:musicali_new This will create a new folder in music folder of H drive by the name ali_new
  • 20. TIME Open BACK to X MS-DOS Command List Display and allow changes to the system time. SYNTAX time SWITCHES There are no switches for this command. EXAMPLE time This will display the current time and prompt you to enter new time. If you do not want to change simply press Enter.
  • 21. TREE Open BACK to X MS-DOS Command List Display the file-folder structure of the drive or folder specified. SYNTAX tree sourcedrive: /switches SWITCHES /f Includes the filenames in each subfolder. EXAMPLE tree h: displays all folders with there subfolders of H drive. tree h: /f displays all folders with there subfolders and files contained in them of H drive.