* Ms-dos
Ms-dos stand for micro soft disk operating system. It
operates our computer hard disk. It is a language
translator. It converts our language into machine
understandable language and machine language in our
language. Here we can do any type of work by given
command. Which are given by the help of keyboard. It
is also known as command label operating system.
It’s command divides in two parts:-
1. Internal command:- this command is memory
residential command. ex:- date, time, cls etc.
2. External command :- this command is disk
residential command. Ex:- edit, help, fc etc.
Cd floppy
G a
Song E c software
F d
Picture data
Hard disk( memory of computer)
C:\>
D:\> command prompt / dos prompt
E:\>
F:\> enter key
C: - c drive b blank space
D: - d drive
E: - e drive
F: - f drive
how to start ms-dos?
Step1- start-> program->accessories->command prompt
Step 2- start -> run -> cmd
C:\>
Internal Command
1. date command:- this command is used to show or modify in
date.
Syntax :- c:\> date
2. time command:- this command is used to show or modify in
time.
Syntax :- c:\> time
3. cls command :- this command is used to clear the whole
screen.
Syntax :- c:\> cls
4. ver command :- this command is used to show version of
ms-dos.
Syntax :- c:\> ver
5. vol command :- this command is used to show serial
number of drive.
Syntax :- c:\> vol
6. exit command :- this command is used to close ms-dos.
Syntax :- c:\> exit
7. copy con command :- this command is used to create a new
file.
Syntax :- c:\> copy b con b file name
8. type command :- this command is used to open previous
created file.
Syntax :- c:\> type b file name
9. del command :- this command is used to delete the file.
Syntax :- c:\> del b file name
10. ren command:- this command is used to rename the file.
Syntax :- c:\> ren b previous file name b new file name
11. copy command :- this command is used to copy one file
inside another file.
Syntax :- c:\> copy bfile1 b file 2
12. Prompt Command :- this command is used to change ms-
dos prompt.
Syntax :- c:\> prompt b any name
13. Md Command :- This Command is used to create a new
directory.
Syntax :- c:\>md b directory name
14. Cd Command :- This Command is used to enter inside a
drive.
Syntax :- c:\>cd b directory name
15. Rd Command :- This Command is used to remove empty
directory.
Syntax :- c:\>rd b directory name
16. Dir Command :- This Command is used to show all files
and directories name.
Syntax :- c:\>dir/p
External Command
1. Edit Command :- This Command is used to modify inside a
file.
Syntax :- c:\>edit b file name
2. Help Command :- This Command is used to know about ms-
dos command.
a) syntax :- c:/> help
b) Syntax :- c:/>help b command name
3. Move Command:- This Command is used to move one file
contents in another file.
Syntax :- c:/> move b file1 b file2
4. Fc Command :- This command is used to compare between
two file.
Syntax :- c:/> fc b file1 b file2 b /n
5. Find Command :- This Command is used to find a given
word.
Syntax :- c:/>find b /n “word” b file name
6. Attrib Command :- This Command is used to protect our file.
a) Syntax :- c:/>attrib b +R b file name
b) Syntax :- c:/> attrib b -R b file name
c) Syntax :- c:/> attrib b +H b file name
d) Syntax :- c:/> attrib b -H b file name