w7- (2) DOS ( Disk Operating System )

DOS provides a text-based interface called the command prompt. From the command prompt, commands can be issued to perform file and disk management, and execute programs. The results of these commands are presented to the user as text messages.

Default Drive: The drive where Windows is loaded, is usually C:\>.

To open command prompt click on 'start' button in search type cmd and press 'enter' button.

Commands Used in DOS:

To change drive type drive letter with column (:) example e: , d: .
To create new directory(like folder)
ex: mkdir dd
        (or)
ex: md dd
To remove directory use command RD
ex: rd dd
To enter into dd directory use command " cd dd "
To out of from dd directory use command " cd.. ".
To out of from total directories to Drive use command " cd/ ".
To clear screen use command " cls ".

" dir " list out all the files and sub-directories in the current directory.
" dir/p " list out all the files and sub-directories in page by page format.
" dir d:\  " list out all the files and sub-directories in d:
" dir a*.* " list out all the files and sub-directories whose names begin with 'a'.

COPY Command: It duplicates files in DOS from one directory to another directory
syntax:  copy <existing file name>  <path where you want to copy>
ex: copy tt.txt c:\users\dvbhatt
syntax:  copy <existing file name>  <path where you want to copy with new name>
ex: copy tt.txt c:\users\dvbhatt\downloads\vv.txt


MOVE Command: It moves the file to one location to another location
syntax:  move <file name>  <path where you want to move>
ex: move tt.txt c:\users\dvbhatt


DEL Command: used to delete a file.
ex: del tt.txt
deletes tt.txt file
ex: *.txt
deletes all files with extension " .txt "

TREE command shows the directory structure from the current directory and below
TREE|MORE command shows the directory structure one page at a time
TREE/F|MORE command shows the position of files stored within the directory structure

ATTRIB command  to view the attributes of a file
sytax: attrib <filename>

here we can see practically in below video