0% found this document useful (0 votes)
5 views21 pages

COM111 Lab Lesson 4

The document outlines objectives and commands related to MS DOS for a computer science lab session, including file management, user accounts, disk management, and various run commands. Key topics include understanding file extensions and attributes, copying and moving files, and using external commands for system management. It also provides specific command syntax for tasks such as shutting down the PC, managing disks, and accessing system tools.

Uploaded by

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

COM111 Lab Lesson 4

The document outlines objectives and commands related to MS DOS for a computer science lab session, including file management, user accounts, disk management, and various run commands. Key topics include understanding file extensions and attributes, copying and moving files, and using external commands for system management. It also provides specific command syntax for tasks such as shutting down the PC, managing disks, and accessing system tools.

Uploaded by

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

COM111-Lab Sessions(4th Week)

( MS DOS )

COMPUTER SCIENCE DEPARTMENT


Objectives

 Understand file extensions


 Understand file attributes
 Copying files
 Moving files
 Understand external commands
 PC accounts and users
 Switch directory using path
 Disk management
 Run commands

2 Kondwani Godwin Munthali (PhD) De 07/04/2025


partment of Computer Science
File extensions

 Documents (pdf, doc, txt, xlsx, ppt, mp3, mp4


etc.)
Despite DIR u may also know file extension
by:
 Configuring Folder options

3 Kondwani Godwin Munthali (PhD) De 07/04/2025


partment of Computer Science
Attributes of files
 Locate the directory and TYPE attrib

4 Kondwani Godwin Munthali (PhD) De 07/04/2025


partment of Computer Science
Copying and moving files

 You can copy files from one folder to another


 Firstly you have to go into the directory itself
where you want to copy the file from
 Like : C:\Users\Hp\Desktop\Files
 TYPE copy [ASS.pdf PICS] also check [xcopy
[][] /s]- More files (+)
 OR TYPE copy [E:\Gen\ASS.pdf E:\PICS]
 Copy [] [] e: (to drive)
 TYPE move [E:\Gen\ASS.pdf E:\PICS] to move
files
5 Kondwani Godwin Munthali (PhD) De 07/04/2025
partment of Computer Science
External Command
TREE COMMAND

 Used to display all directory pathnames on specified


disk

 TYPE C:\>TREE

 Explore EDIT, PRINT and FORMAT

6 Kondwani Godwin Munthali (PhD) De 07/04/2025


partment of Computer Science
PC accounts or users

 Know who is using the PC like having user


account

 TYPE cd\
 TYPE cd users and hit Enter
 Then you proceed with DIR to see the users
 whoami (Display information about the active
user)

7 Kondwani Godwin Munthali (PhD) De 07/04/2025


partment of Computer Science
Shutting down PC

 Before shutting down the computer try


TYPING exit and hit ENTER
 You may Shutdown your PC, restart or
hibernate as long these utilities are supported
 TYPE shutdown /s
Take note of (/r, /t, /o, /t/0)

Shutdown.exe /r /0 (BIOS) -bootcfg


/rebuild (correcting errors)

8 Kondwani Godwin Munthali (PhD) De 07/04/2025


partment of Computer Science
Directory switching using path

 C:\Windows\system32>cd c:\users\user\
documents\com111

9 Kondwani Godwin Munthali (PhD) De 07/04/2025


partment of Computer Science
Disk management

 DISKPART
 LIST DISK
 SELECT DISK [0]
 CREATE PARTITION PRIMARYEXTENDED
SIZE=10000 (MB)
 ASSIGN LETTER=D
 EXIT

10 Kondwani Godwin Munthali (PhD) De 07/04/2025


partment of Computer Science
Fixing errors under disk

 Chkdsk /f c: (will check and scan the


system and repair errors in the disk if found)-
File fragmentation, Disk errors, Bad sectors

 Sfc /scannow (scan the system files for


anomalies)

11 Kondwani Godwin Munthali (PhD) De 07/04/2025


partment of Computer Science
RUN commands

 services.msc – When you enter “services.msc” it


will open the Windows Services app where you can
easily start, stop and configure other settings for
each and every service individually. It’s quite
helpful when you want to toggle a service. Task
manager

 msinfo32 – Quickly getting your system


information, then the “msinfo32” command is the
way to go. At a glance it will display all the system
details including the hardware resources and
software environment.
12 Kondwani Godwin Munthali (PhD) De 07/04/2025
partment of Computer Science
RUN commands…

 compmgmt.msc – The Computer Management app


is where you can access almost all the advanced
Windows modules like Event Viewer, Shared Folder,
System Tools, etc.
 cleanmgr – This command allows you to open the
Windows Disk Cleanup utility. Once opened, simply
select the drive your want to clean up and click the
“OK” button.
 eventvwr.msc – Windows Event Viewer is where
Windows stores all the monitoring and
troubleshooting messages. You can use this command
to quickly access the Event Viewer application.

13 Kondwani Godwin Munthali (PhD) De 07/04/2025


partment of Computer Science
RUN commands…

 control –U can access Windows Control Panel


quickly using this command
 mmc – Microsoft Management Console (MMC)
is an advanced Windows module that is
mainly aimed at system administrators and
power users, as it sports all the tools required
for configuring and monitoring a Windows
system (devmgmt.msc, diskmgmt.msc/
hdwwiz.cpl, services.msc, eventvwr.msc)
or mmc eventvwr.msc on CMD)

14 Kondwani Godwin Munthali (PhD) De 07/04/2025


partment of Computer Science
RUN commands…

 resmon – Whenever you want to check how


your system resources are being utilized,
simply use this Run command, and it displays
everything from your CPU to Disk to Network
 Calc
 powershell – If the command prompt is too
old for you, then you may want to try
PowerShell. Just type this command in the Run
dialog box, and you will have your PowerShell
opened without administrator privileges
(get-command)
15 Kondwani Godwin Munthali (PhD) De 07/04/2025
partment of Computer Science
Run commands…

 REGEDIT – Regedit Run command can be


used to access the Windows Registry, which is
a hierarchical database that hosts all the
configurations and settings of an operating
system and the installed programs.

(CLASSES_ROOT, CURRENT_USER, LOCAL_MACHINE,


USERS, CONFIG)

Caution: Don’t try to change any Value in your


system
16 Kondwani Godwin Munthali (PhD) De 07/04/2025
partment of Computer Science
Run commands…

 netplwiz – The general user accounts option


is available through the Control Panel, but if
you want to mess with the advanced user
account options, then use this command to
open the Advanced User Accounts window
 gpedit.msc – Group Policy Editor in Windows
allows you to set and edit different Windows
policies of a local or remote computer. Since
Group Policy Editor is an advanced tool, it is
buried deep inside Windows, and this Run
command is the easiest way to access it.
17 Kondwani Godwin Munthali (PhD) De 07/04/2025
partment of Computer Science
Run commands…

 lusrmgr.msc – Using this command, you can


open the Local Users and Groups Manager
where you can edit several properties of all
the users and groups
 mrt – Every month Windows releases a newer
version of Microsoft Windows Malicious
Software Removal Tool through the Windows
Update. This free tool helps you in cleaning
some of the most popular malicious software
from your Windows computer.

18 Kondwani Godwin Munthali (PhD) De 07/04/2025


partment of Computer Science
Run commands…

 perfmon.msc – If you want to monitor the


performance of your Windows computer and
effects of the programs you run, running
Performance Monitor will provide ample data.
You can access the Performance Monitor using
this command
 ncpa.cpl – Being an Internet user means that
you have to deal with occasional (if not daily)
network problems, and one way to
troubleshoot your network connection is by
accessing your Network Adapters
19 Kondwani Godwin Munthali (PhD) De 07/04/2025
partment of Computer Science
Run commands…

 powercfg.cpl – Windows hosts a wide range of


power options to deal with your computer’s power
usage, and you can access all those Power Options
using this command
 appwiz.cpl – Using this command you can quickly
access the Programs and Features window where
you can quickly uninstall your installed programs
 msconfig – Windows System Configuration is
where you can edit different things like the boot
options, startup options, services, etc. You can use
this Run command to access the System
Configuration window.
20 Kondwani Godwin Munthali (PhD) De 07/04/2025
partment of Computer Science
Run commands…

 sysdm.cpl – If you ever want to access the


System Properties window
 firewall.cpl – If you want to manage or
configure your Windows firewall, then you can
use this Run command to quickly access the
Firewall window.
 ms-settings:windowsupdate
/Wuapp.exe –You can use this command to
check, manage and configure all your
Windows update settings (it works on some
not all)
21 Kondwani Godwin Munthali (PhD) De 07/04/2025
partment of Computer Science

You might also like