INTERNAL-Commands
INTERNAL-Commands
COMMANDS
1. CLS
Clears the screen.
Syntax:
C:\cls
2. DATE
Displays or sets the date.
Syntax:
DATE [date]
Type DATE without parameters display the
TIME [time]
Type TIME with no parameters to display the
time 12:00
Set the time to 12:00
4. COPY CON
type filename
6. CD
Stands for change directory. It is used to find
out the location of the file in the directory
structure or it can also move us from one
location in the directory structure to another.
Syntax
C:\>CD dirname
C:\>CD..
C:\>CD \
7. DIR
Lists the contents of a directory. The dir
command typed by itself, displays the disk's
volume label and serial number; one directory
or filename per line, including the filename
extension, the file size in bytes, and the date
and time the file was last modified; and the
total number of files listed, their cumulative
size, and the free space (in bytes) remaining
on the disk.
Syntax:
md test
The above example creates the "test" directory in
the directory you are currently in.
md c:\test
Create the "test" directory in the c:\ directory.
9. PROMPT
Changes the Windows command prompt.
Syntax:
PROMPT [text]
text Specifies a new command prompt.
Type PROMPT without parameters to reset the
removed.
Syntax:
rd directoryname
Example:
C:\>rd test
14. VER
Used to see the current version of DOS.
Syntax:
Ver
Example
C:\>ver
MS DOS version 6.22
15. VOL
Displays the volume information about the
designated drive.
Syntax:
Vol drivename
Example:
C:\>Vol
Volume in drive C has no label.
Volume serial number is AA15-1FB0
16. PATH
PATH [[drive:]path[;...]]
Examples
C:\PATH ;
clears all search-path settings and direct
Windows to search only in the current directory.
C:\PATH
PATH without parameters to display the current
path.
1. Create the following directory structure in DOS
on D drive.
2. Copy the india directory to F drive.
3. Create a directory UT under India directory and
copy chandigarh and delhi files to UT directory.
4. Delete shimla file and JK directory.
5. Rename himachal to HP.
6. Write a command which shows all directories
under india directory.