0% found this document useful (0 votes)
51 views5 pages

CSC3300 - Lab Activity 1

This document provides instructions for Lab 1 of the CSC3300 course. The objective is to introduce students to the Windows operating system and Command Prompt. Students will answer questions about their computer system and perform tasks in the Command Prompt such as viewing and navigating directories, copying, renaming, and deleting files, and creating and deleting directories. The lab is due in Week 2 and will be assessed based on ability to perform operating system tasks from a rubric ranging from very poor to excellent.

Uploaded by

214391
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views5 pages

CSC3300 - Lab Activity 1

This document provides instructions for Lab 1 of the CSC3300 course. The objective is to introduce students to the Windows operating system and Command Prompt. Students will answer questions about their computer system and perform tasks in the Command Prompt such as viewing and navigating directories, copying, renaming, and deleting files, and creating and deleting directories. The lab is due in Week 2 and will be assessed based on ability to perform operating system tasks from a rubric ranging from very poor to excellent.

Uploaded by

214391
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

CSC3300 Sem.

1 2023/2024

UNIVERSITI PUTRA MALAYSIA


FAKULTI SAINS KOMPUTER DAN TEKNOLOGI MAKLUMAT

LAB 1 – Individual

OBJECTIVE:
The main objective of this lab is to introduce the students to the Windows operating
system. Students will also be introduced to the Command Prompt.

DURATION:
1 week / 3 hours

DUE DATE OF SUBMISSION: WEEK 2


Submit your assignment to your demonstrator and also putraBlast.

PROGRAMME OBJECTIVE (PO):


PO2: Use the available software package with appropriate computer components.

RUBRIC:

LEVEL 1 LEVEL 2 LEVEL 3 LEVEL 4 LEVEL 5


CRITERIA
Very Poor Poor Good Very Good Excellent
The ability to Unable to Able to perform Able to perform Able to perform Able to perform
perform perform OS OS tasks with OS tasks with OS tasks with OS tasks with
operating system tasks or able to limited success some success (≥ considerable outstanding
(OS) tasks. perform OS (≥ 40%,< 60%). 60%, < 80%). success (≥ 80%, success (100%).
tasks with very < 100%).
limited success
(< 40%).

QUESTIONS:
Part A (Knowing about your computer)

1. Answer the following questions about the computer that you are using in this lab.

a) What is the version of the Windows OS in use?


b) What company manufactured the computer?
c) What is the speed of the processor and how much RAM (physical memory) is
in the computer?
d) How much data can you store on the C: drive and how much of the C: drive is
in use?
e) What is the name of the antivirus program used in the computer (if any)?

1
CSC3300 Sem. 1 2023/2024

2. On the computer which you are working, perform and list down a hardware and
software inventory of at least three hardware devices and three application
programs on the computer. List the vendor and product.

Part B (The Command Prompt)

Objectives:
• use DOS commands to view, navigate, create and delete directories
• use DOS commands to copy, rename, and delete files

Microsoft’s Disk Operating System (DOS), also called MS-DOS, is a collection of


programs and commands used to control the overall computer operations system. All
modern Windows versions support DOS commands from the command line.

1. Open a command line from Windows:


• Click the Start/Run button and type: cmd or command

1. What directory are you in? ________________


2. What does the prompt look like? ___________

2. Displaying Directory Contents: Dir


DIR command will list directories and various files. Directories are specified with
the<DIR> notation that precedes the file/directory. The DIR command also displays
the volume name, free space, and total files and directories present.

Show a list of the directories located on this drive.


• type: cd\ change to the root directory
• type: cd windows change to the windows directory
• type dir

What happened? ______________________________________

• type: dir /p Press enter to continue the list

How many directories do you have in the windows folder?


_____________________________

What does the /p switch do? _______________

2
CSC3300 Sem. 1 2023/2024

3. The absolute path and relative path


The commands related with file and directory allows two ways in specifying location
(for source or target), which are called the relative path and absolute path. A path is
the direction from the current directory or other specific location to the intended file or
directory (e.g. c:mydir\mysubdir\file.txt).

When you only specify a source or target without the parent directory name (e.g.
file.txt), the command will search the source/target in current directory. This is known
as relative path. But you may specify source/target located outside the current
directory by providing the absolute path (e.g. c:mydir\mysubdir\file.txt).

Absolute path will allow you to specify to any source/target when you run a command
from any location in the system/directory structure. There are also special sub
directories named ‘.’ and ‘..’ provided in all directories.

• Find out the content of your current directory (use DIR command)
Find out the content of the root/base directory e.g. c:\ (use DIR command)

• Type the following command -> dir .  don’t ignore the dot !
What is displayed on the screen? So what is the purpose of the dot (‘.’)?
_________________________

• Type the following command -> dir ..  don’t ignore the dots !
What is displayed on the screen? So what is the purpose of the dots (‘..’)?
_________________________

• What is the command to determine the existence of a file named ‘file1.txt’ in the
current directory?
__________________________________________________________

• What is the command to determine the existence of a file named ‘file1.txt’ in a


directory named ‘mydir’ in the upper level (1 level) above of the current directory?
__________________________________________________________

4. Create and change a directory


To create directories in DOS, use the md directory_name or mkdir directory_name
command.
To change directories use the cd directory_name command. To move up one level in
the directory structure, use the command cd…

Create an IT directory in the C drive


• type: cd change to the root directory
• type: md IT

Verify the creation of the directory

3
CSC3300 Sem. 1 2023/2024

• type: dir
Is the IT directory in the list? _______________________________

How to change to the IT directory? _____________________________

5. Managing Files: copy, ren, del


You can use the copy command to make a 2nd copy of a file, with a new name.

Save a file to IT directory (file name lab2.doc)


How to verify whether lab2.doc file is in the IT directory?________________

Make a backup of the lab2.doc file with other name labTWO.doc


• type: copy lab2.doc labTWO.doc
• type: dir
Are the new backup file and the original there? __________________

To rename a file, you can use the ren command.

Rename lab2.doc to lab.doc


• type: ren labTWO.doc lab.doc
• type: dir
Did the file renamed? ___________

Delete files in DOS by using the del command.


Delete lab.doc file
• type: del labTWO.doc
Is the file has been deleted? _____________
Why? _______________________________

6. Delete a directory
To delete a directory in DOS, use the rd directory_name or rmdir directory_name
command.

Delete the IT directory


• type: rd it
Is the folder deleted? _________
Why? _______

If your directories can’t be deleted, try this command:


• type cd\ to change to the c:\ drive
• type: rmdir IT /s

4
CSC3300 Sem. 1 2023/2024

• type Y to confirm the removal of the it directory and all its subdirectories
Verify directory removal
• type: dir
Is the directory still exists? _________

Questions end. However students are encouraged to search and practice other commands
that are provided by the command prompt shell to have more exposure to the shell.

You might also like