Experiment: 3B: E5164 Computer System Diagnosis& Maintenance Exp 3B: Learning MS-DOS Basics
Experiment: 3B: E5164 Computer System Diagnosis& Maintenance Exp 3B: Learning MS-DOS Basics
EXPERIMENT : 3B
A command prompt is a non-graphical interface that allows you to interact with your operating system.
At the command prompt, you enter commands by typing their names followed by options and arguments. Most
modern computers use a graphical user interface (GUI), which allows users to more intuitively access programs
and documents. However, some programs and commands are still only available only through a command
prompt. To access the command prompt, follow the instructions appropriate to your operating system.To access
the command prompt in Windows, from the Start menu, select Run... . In the "Open:" field, enter cmd (Windows
NT, 2000, XP, and Vista) or command (Windows 95, 98, and Me)
Changing the settings for the command prompt can be done through the properties dialog box. This can
bereached in the menu that is opened by left-clicking the icon in the left-top corner or by right-clicking anywhere
in the title bar at the top of a command prompt window. In the menu that opens choose "Properties".
The properties dialog box contains four tabs. Each of these is discussed below.
1
E5164 Computer System Diagnosis& Maintenance
Exp 3B : Learning MS-DOS Basics
color attr
The screen colors can be configured from the command line itself with the command "color" followed by a two-digit
hexadecimal number. The first digit determines the background and the second determines the text color. The
table below shows the relationship between the hex numbers and colors.
For example the command "color 1E". Observe carefully and write down what will happen?
________________________________________________________________________________________
2
E5164 Computer System Diagnosis& Maintenance
Exp 3B : Learning MS-DOS Basics
dir
Observe carefully and write down what will happen?
________________________________________________________________________________________
1. Before you begin this section, make sure the command prompt looks like the following :
C:\Documents and Settings/
Type cd ..
Observe carefully and write down what will happen?
________________________________________________________________________________________
2. Make sure the command prompt looks like the following: C:\>
Type cd windows
3
E5164 Computer System Diagnosis& Maintenance
Exp 3B : Learning MS-DOS Basics
2. To confirm that you successfully created the FRUIT directory, type the following at the command
prompt :
dir
Observe carefully and write down what will happen?
________________________________________________________________________________________
3. Type the following at the command prompt :
cd fruit
5. To change to the GRAPES directory, type the following at the command prompt :
cd grapes
Observe carefully and write down what will happen?
________________________________________________________________________________________
4
E5164 Computer System Diagnosis& Maintenance
Exp 3B : Learning MS-DOS Basics
Before you begin this section, make sure your command prompt looks like the following:
C:\FRUIT>
1. Insert a CD. Make sure the disk clicks into the drive.
2. Type the following at the command prompt :
E:
3. Observe carefully and write down what will happen?
________________________________________________________________________________________
COPYING FILES
Before you begin this section, make sure the command prompt looks like the following:
F:\>
1. Type the following at the command prompt :
dir
Choose 1 file to copy.eg :
Cd salim 17dke07f521
The command prompt should now look like the following:
F:\>salim 17dke07f521
3. To copy the Tugasan 1.doc file from the DOS directory to the FRUIT directory, type the following at the
command prompt :
copy poster1.psd c:\fruit
Observe carefully and write down what will happen?
________________________________________________________________________________________
2. To confirm that you copied the files successfully, change to the FRUIT directory by typing the following
at the command prompt :
cd \fruit
3. To view a list of all the files in the FRUIT directory, type the following at the command prompt :
dir
Observe carefully and write down what will happen?
_______________________________________________________________________________________
RENAMING FILES
Before you begin this section, make sure your command prompt looks like the following:
C:\FRUIT>
1. To rename the poster1.psd file to posteredit.psd, type the following at the command prompt :
ren poster1.psd poster2.psd
2. To confirm that you renamed the file successfully, type the following at the command prompt :
dir
6
E5164 Computer System Diagnosis& Maintenance
Exp 3B : Learning MS-DOS Basics
DELETING FILES
To delete a file, you will use the del command. The del command stands for "delete."
Before you begin, make sure your command prompt looks like the following:
C:\FRUIT>
2. Delete all files ending with psd by typing the following at the command prompt :
del *.psd
7
E5164 Computer System Diagnosis& Maintenance
Exp 3B : Learning MS-DOS Basics