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

DOS Commands

The document discusses internal DOS commands and provides a table listing common internal commands, their purpose, and syntax. It also mentions external commands that are separate programs outside of COMMAND.COM and provides some examples. The document then describes two lab problems - the first involves creating directories and files, copying and renaming files. The second involves additional file operations like copying, renaming, deleting files and directories, combining files, and displaying file contents and help information.

Uploaded by

Shivani Bhardwaj
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

DOS Commands

The document discusses internal DOS commands and provides a table listing common internal commands, their purpose, and syntax. It also mentions external commands that are separate programs outside of COMMAND.COM and provides some examples. The document then describes two lab problems - the first involves creating directories and files, copying and renaming files. The second involves additional file operations like copying, renaming, deleting files and directories, combining files, and displaying file contents and help information.

Uploaded by

Shivani Bhardwaj
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 7

COMMANDS

• Internal
– Common commands found inside
COMMAND.COM, the command interpreter
CD CLS COPY
DATE DEL DIR
ERASE MD PATH
PROMPT RD REN
TIME TYPE VER
Internal Commands
Command Purpose (Semantic) Syntax
CD Change Directory CD [drive:][pathname]
CLS Clears Screen CLS
COPY Copies File COPY [drive:][pathname] src file target file
DATE Display/Set System date DATE [mm-dd-yyyy]
DEL Delete files DEL [drive:][pathname] filename
DIR Display Directory Listing DIR [drive:][pathname] [/switches]
ERASE Same as DEL ERASE [drive:][pathname] filename
MD Create a subdirectory MD [drive:][pathname] directory name
PATH Displays/ Sets Path PATH [= pathname]
PROMPT Changes the Prompt Sign PROMPT [text ] [$character]
RD Removes Directory RD [drive:][pathname] directory name
REN Renames Files REN [drive:][pathname] oldname newname
TIME Display / Set System Time TIME [hh:mm:ss]
TYPE Display File contents TYPE [drive:][pathname] filename
VER Display OS Version VER
Computer Fundamentals for
Managers Practical File

IITM
Name
PGDM I Sem
Index
S. No Date Topic Page No. Signature
1. Internal Dos commands

2. Internal Dos commands


Commands cont.
• External
– Separate programs outside of COMMAND.COM
– Commands are contained their own file
– PATH must be set for the commands

ATTRIB CHKDSK DELTREE

DISKCOMP DISKCOPY DOSKEY

EDIT FORMAT MORE

MOVE SCANDISK TREE


LAB 1 Problems

1. Create a sub directory with your first name


2. Change to your directory
3. Create a file NUMBER.TXT and enter 1 to 10 numbers
4. Copy the previously created file to NUMBER1.TXT
5. Create another file and enter names of your class mates
6. Create the given directory structure
First name

S1 S2 S3

File1 File2
Lab 2 Problems
1. Copy File1 from S1 directory to S3 directory
2. Change name of File1 in S3 directory to PGDM.TXT
3. Delete File1 from S1 directory
4. Combine Number.TXT and the file containing your classmate names
to combine.dat File.
5. Copy all the files with .Txt extension from your directory to S2
directory
6. Display only those files where primary name consists of max 4
characters with .TXT extension from your directory
7. Find the version of operating system
8. Display directory listing according to file name in alphabetical order
9. Display the help of prompt command & change your prompt to
current time followed by “>” sign
10. Display the contents of combine.dat file
11. Delete S3 directory

You might also like