0% found this document useful (0 votes)
21 views7 pages

ICT Lab 2

The document provides an overview of MS-DOS and the Windows Command Prompt, highlighting their functions and similarities. It lists basic commands such as CD, CLS, and DIR, along with their functionalities. Additionally, it outlines a series of tasks to demonstrate the use of these commands, including changing directories, creating folders, copying files, renaming, moving, and deleting files.

Uploaded by

dev.faisee
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)
21 views7 pages

ICT Lab 2

The document provides an overview of MS-DOS and the Windows Command Prompt, highlighting their functions and similarities. It lists basic commands such as CD, CLS, and DIR, along with their functionalities. Additionally, it outlines a series of tasks to demonstrate the use of these commands, including changing directories, creating folders, copying files, renaming, moving, and deleting files.

Uploaded by

dev.faisee
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/ 7

ICT LAB 2

OVERVIEW OF MS-DOS AND WINDOWS


COMMAND PROMPT

•MS-DOS:
•MS-DOS stands for Microsoft Disk Operating System.
•It is an operating system for x86-based personal computers.
•In Windows, MS-DOS-like commands can still be used in the command
prompt.
•Windows Command Prompt:
•Similar to MS-DOS but for modern Windows operating systems.
•Supports a variety of file and directory commands.
BASIC COMMANDS AND THEIR FUNCTIONS

•CD: Displays or changes the current working directory.


•CD..: Moves up one directory level.
•**CD**: Takes you to the root directory.
•CLS: Clears the command window.
•DIR: Lists the contents of a directory.
•COPY: Copies files from one location to another.
•DEL: Deletes files.
•DELTREE: Deletes directories and their contents.
•MOVE: Renames or moves files.
•TREE: Displays a directory tree.
•EXIT: Exits the command prompt or batch script.
•CTRL+C: Interrupts and terminates running commands.
IMPLEMENTATIONS OF SOME COMMANDS

• Task 1: Open CMD and Change Directory


• Instructions:
1. Open the command prompt (CMD).
1. Press Alt + Shift + Right-click to open CMD in a folder or drive.
2. Change the directory from C: to D: by typing the following command:
• Task 2: Create a Folder, Add Files, and Copy Contents
• Instructions:
I. In the D: directory, create a folder named Labthree:

II. Navigate into the Labthree directory:cmdCopy code

III. Create two files source and destination in this folder.


▪ You can use Notepad to create and save text in the source file.
IV. Add some text into the source file and save it.
V. Use the copy command to copy the contents of source to destination:
• Task 3: Rename and Move the File
• Instructions:
I. Rename the destination file to dest:

II. Move the dest file to the root of drive D: (from D:\Labthree to
**D:**):cmdCopy code

• Task 4: Delete the Source File


• Instructions:
1. Delete the source file from the Labthree folder:
TASKS

•Show your understanding of the Windows command prompt by completing these tasks:

1) Open cmd and change directory from C: To D:

2) In D: directory create a folder and name it Labthree add two files and name it source and
destination. Add some text in source file, save it. Then from cmd copy the file content of
source to destination.

3) Rename the file destination to dest using cmd. Move dest to Directory D: (Currently the
file is residing in D:\Labthree )

4) Delete the file source from the folder Labthree.

You might also like