DOS Commands
DOS 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
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