0% found this document useful (0 votes)
19 views

Os Lab 1 New

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

Os Lab 1 New

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

1

Balkumari, Lalitpur

Lab No: 1
Lab Title: Operating System
Submitted by: Submitted to:
Name: Adarsha Bhattarai Department of IT
Roll no: 03 Operating System
BCA 4th Semester

Submitted Date:
LAB 1: MS-DOS Command Related to System and Batch Processing

Theory
DOS stands for Disk Operating System. It provides Command Line Interface (CLI). To open a
Microsoft DOS command prompt shell window, first click on the start menu at the lower left of
the computer desktop and select run. The type cmd into the Run box and click “OK”.

Practical
1. cd: Change directory or display current directory path
syntax: cd directory_name

2. cls: Clear the screen


syntax: cls

3. dir : Display list of contents of current directory.


Syntax: dir
4. help : Display list of commands or help about a command.
Syntax: Help command_name

5. notepad : Run the Windows Notepad text editor.


Syntax: Notepad

6. type : Displays the contents of a text file.


Syntax: Type file_name

7. chkdsk : Checks a disk and displays a status report.


Syntax: Chkdsk [volume][filename][option]
8. color : Sets the default console text and background colors
syntax: COLOR[attribute]

9. copy : Copies one or more files to another location


syntax: COPY [option] source [option] destination file

10. date : Displays or sets the computer's date and prompts you to enter a new date.
Syntax: date

11. Time: displays the current system time and prompts you to enter a new time.
Syntax: time

12. echo : Displays messages, or turns command echoing on/off.


Syntax: echo

13. exit : Closes the DOS window.


Syntax: exit

14. find : Searches for a text string in a file or files.


Syntax: Find “string” filename

15. md (or mkdir) : Creates a directory.


Syntax: Mkdir directory_name
16. more: Displays the contents of a file one screen at a time.
Syntax: More file_name

17. move: Moves one or more files from one directory to another directory.
Syntax: Move filename destination directory

18. rd (or rmdir): Removes a directory.


Syntax: Rmdir directory name

19. ren (or rename): Renames a file or files.


Syntax: Rename oldfile_name new_name

20. tree : Graphically displays the directory structure of a drive or directory.


Syntax: tree

21. shutdown: shuts down the computer after certain time


syntax: Shutdown /s
To cancel :
Shutdown -a

Conclusion
In this lab, we learnt about different MS-DOS Command related to system and batch
processing using the Microsoft DOS Command Prompt Shell Window (CMD).

You might also like