Tutorial 4 - Introduction To Microsoft DOSv3
Tutorial 4 - Introduction To Microsoft DOSv3
Microsoft Disk Operating System (MS DOS) is no longer used directly as a the main shell for
Microsoft's operating systems and it has been superseded by the GUI-based Microsoft Windows
Operating Systems for computers and other devices. However, understanding how to use various
DOS commands will give you a good foundation for working with other CLI-based operating systems
such as Unix and Linux, where the GUI is not available or where it does not support some system
administration functions.
1. Starting MS DOS
Start the DOS command prompt by typing cmd in the search window followed by the <enter>
key (or from the start menu: Accessories -> command prompt)
The start-up screen will show the default disk drive and the current working directory (or a
'folder' in the Windows GUI-based environment).
C: denotes the hard disk drive or HDD [A: is often reserved for 3.5in floppy disk drive
(diskette), B: for the 5.25in floppy disc drive, and D: for a partition in the HDD]. Other disks
(including memory sticks, etc.,) are often assigned a letter of alphabet from E to Z, in that
order.
(Note: S: is your designated student home drive on Keele networks. Stay on this drive for the
rest of the exercises. Careful not to delete files accidentally because recovering them may not
be straight forward. You should also always to keep a backup copy of your files. )
MS DOS is not case sensitive (like Unix, for example) and typing a command such as DiR
<enter> has exactly the same effect as dir <enter>
You can use various options for displaying the output on the screen such as dir /p to display
one screen at a time; dir /w displays file names and directory
You have formed a hierarchy of folders: csc-10029 - > practicals - > [algebra | logic |
numbers]. Use tree command to view the hierarchy of a subdirectory or subfolder]
8. Copy a file
Use any file on your directory: Copy <fileone> <filetwo>
produces a duplicate of <fileone> called <filetwo>
To copy all files from one directory or folder (and put them in another directory or folder (try
this with your own directories)
[can UNDELETE file - but not well supported in current Windows versions]
Exercise: create multiple .txt files with notepad and then delete them with *.txt
CLS
ECHO Welcome to Reeves Town!
PAUSE
DIR /p /w
CLS
You can find more examples and the command-line reference A-Z at:
https://technet.microsoft.com/en-gb/library/bb490890.aspx