Internal Commands
Internal Commands
1 of 4
http://www.rcppmail.org/DOS/Internal_commands.htm
Internal Commands
These commands are automatic loaded into the memory when operating system is loaded into the memory.
Thus these are also called memory-resident commands. The command available are all combined together
and are stored in Command.com file, which is a executable command file. These internal command are
further grouped according to their properties. These are as follows.
Genral purpose
1. CLS
2. DIR
3. VER
4. VOL
5. DATE
6. TIME
12. MD
13. CD
14. RD
Switches:-
/P
Page wise
/W
Widths wise
11/13/2016 7:13 AM
Internal Commands
2 of 4
http://www.rcppmail.org/DOS/Internal_commands.htm
/S
/AH
/AS
/AD
3. VER:-(Version) Version numbers indicates that which edition of DOS we are working on.
Syntax:- C:\> VER press enter
Output:C:\>VER
Windows 98 [Version 4.10.2222]
4. VOL:-(Volume) Displays the disk volume label and serial number, if it exist.
Syntax:- C:\> VOL press enter
Output:-C:\>VOL
Volume in drive C is JAI
Volume Serial Number is 3E42-1907
Type DATE without parameters to display the current date setting and
a prompt for a new one. Press ENTER to keep the same date.
Note:- We enter new date in the format of MM-DD-YY.
6. TIME:- Display current time
Syntax:- C:\> TIME
C:\>TIME
Current time is 8:38:47.70a
Enter new time:
Type TIME with no parameters to display the current time setting and a prompt for a
new one. Press ENTER to keep the same time.
Note:- We enter the time in the format of 24 hour clock.
11/13/2016 7:13 AM
Internal Commands
3 of 4
http://www.rcppmail.org/DOS/Internal_commands.htm
After copy con we must specify a suitable file name. Press enter. Start typing the
informations of the file. After gathering the information we press ^Z (CTRL+Z)
button or F6 button to save the file. After pressing enter key computer will show a
message like 1 file(s) copied. This means that file is stored in the disk. Suppose we
don't want to save the file or we just want to abort from file creation job, then we
simply press ^C (CTRL+C) button to abort without saving the file, intend of
pressing ^Z button.
Notes:- 1. Never forget to give a suitable filename
2. You can use extension as .TXT for denoting the file as Text file.
8. TYPE:- This command is used to display the contents or text of any file to the display device.
Syntax:- C:\> TYPE <Filename>
A:\>TYPE GULAB.TXT
A clock in a office can never get stolen
Too many employees watch it all the time
9. COPY :- Copy command is used for copy any file to another location or to copy the files to another
directory. This command may also be used for copying any file to another disk with different file name.
Syntax:- C:\> COPY <Source filename> <Target file name>
C:\>COPY ROSE.TXT ROSE.MSG
1 file(s) copied
10. REN:- (Rename) This command is used to change the name of any file or directory.
Syntax:- C:\> REN <Source filename> <Target filename>
C:\>REN ROSE.TXT GULBAL.TXT
If we get successfully C:\ that means filename or directory name is get changed.
Either it will show the error message.
To changing the filename present in floppy disk
C:\>REN A:\ROSE.TXT GULAB.TXT
Note that you cannot specify a new drive or path for your destination.
11. DEL:- This command is used for erasing any file from the disk.
Syntax:- C:\> DEL <Filename>
C:\>DEL LOTUS.TXT
If it successfully erase the file from dosk then C:\> prompt will be appear, either
computer will show an error message.
11/13/2016 7:13 AM
Internal Commands
4 of 4
http://www.rcppmail.org/DOS/Internal_commands.htm
Now this directory can be used for keeping various sort of reports. Under this
directory we can create another directory which is known as subdirectory.
13. CD:- (Change Directory):- We can enter or exit from any directory using this command.
Syntax:- To access any directory
C:\> CD <Directory name>
C:\> CD REPORT
C:\REPORT>
Prompt will change with the directory name. If we keep two dots after CD command
than we will exit from the directory.
Syntax:-C:\> CD..
C:\REPORT> CD..
C:\>
14. RD:-(Remove directory):- This command is used when we want to remove any unusable directory form
our disk.
Syntax:- C:\> RD <Directory name>
C:\> RD REPORT
15. PATH:- This command is used for display or sets directories for executable files.
Synatx:- C:\> PATH
This command display current path settings.
C:\> PATH=C:\WINDOWS\COMMAND;C:\WINDOWS\;C:\TC
this command will sets the directories windows, the command subfolder of windows
and TC folder for executable files. Operating system will look for executable files in
these directories.
NOTE:- If we need any help for above DOS commands the we put a '/?' symbol after writting the command
at DOS prompt .
Example:- C:\> DIR/? or C:\> COPY/?
Previous | Content | Next
rcpp project office
Rashtriya Computer Prakshikshan Pariyojna
11/13/2016 7:13 AM