March 19, 2011

 Internal Commands - II



MD:
This is the Command which lists the user to create a new directory.
Syntax : MD [\Directory name] [\Directory name]
Ex: A:> MD Shankar


CD:
The 'Change Directory' Command is used to change from one directory to another directory.
Syntax: CD [\Directory Name] [\Directory Name]
Ex : CD\MYHOME\MYCOMPUTER


RD
:
The 'Remove Directory' Command is used to remove a sub-directory from a particular directory.
Syntax: RD [\Directory name]
Ex: A:> RD MYHOUSE

NOTE: A directory can not be remove directly first at all the existing files in that directory should be deleted then only the main directory can be removed.


TYPE:
This Command displays the contents of the specified file on the Screen.
Syntax :TYPE < file name extension>
EX: A:\> TYPE YOURNAME


COPY:
This Command is helpful for copying the contents of one file to another file, a path should be specified copying and it is possible to copy the contents of one drive to another drive.
Syntax  : Copy [ < Source file> < Target file> ]
Ex : A:\> Copy sourcename targetname


PATH :
This Command is used to set the path for a Command Search.
Syntax : PATH [Drive :\Path; Drive :\P]
Ex: C:\> DOS path: A:\


DEL:
This Command is used to delete the contests of a specified file
Syntax : DEL [ < File name.Exe> ]
Ex : A:\> DEL NAME


REN :
It is a command which is used to change the name of an existing file name with a new file name. Syntax : REN [ < Old File> <New File> ]
Ex: A:\> Ren Old file new file
A:\> Ren oldname newname


March 18, 2011

 Internal Commands - I



VER:
It display a version number and the Operating System Currently in use. 
Syntaxtax :VER and Press < Enter>
So you get in your screen "MS-DOS Version 6.22" and returns to the prompt: A:\>


VOL:
It displays a volume label and the serial number of the current or specified disk. The length of the internal label is Maximum of 11 characters.
Syntaxtax: Vol [Drive:]
Example: Volume and Press < Enter>
Example : Volume in A:\> is mycomputer


CLS:
Syntaxtax : Cls
It clears the screen and displays the prompt at the top of the left corner of the Screen.
Syntaxtax: Cls
Ex: A:\> Cls and press < Enter>


DATE:
Date Command displays the current date and allows you to change it.
Syntaxtax : Date
Ex: A:\> Date and press < Enter> 
Ex : A:\> Date
Current date is Thu 05-28-2010
Enter new date (MM-DD- YY) TIME:


TIME: 
Time Command displays the Current system time allows you to change it.
Syntaxtax : Time
Ex: A:\> is TIME


DIR:
The DOS Directory Command (DIR) is used to display a listing of files on floppy diskette / hard disk.
Syntaxtax : DIR [ DRIVE :] {PATH} [FILE SPEC/FILE NAME] 
[/P] [/W] [/B] [/C] [/SJ [/A : ATTRIBUTE]
[/O: SORT ORDER]

NOTE:
DIR displays a list of files, directories present in the Current or Specified drive or directory.


DIR/P
It lists one Screenful of files in the normal order, waits for to read it, and when you press any key. It scroll up one more screenful information.
Syntaxtax : DIR/P 
Ex: A:\> DIR/p


DIR/W
It provides an easy - to - read directory listing which Contains only file names and their extensions.
Syntaxtax : DIR/W 
Ex: A:> DIR/W


DIR/B
Listed the files on the diskette in 'B' drive though the present working drive is 'A'.
Syntax: DIR B: 
Ex: A:> DIR B:


DIR/L 
Displays the directory listing in lower case mode.


DIR/S
Display the all files and directories with Sub-Directories of the current or specified drive.


[/A: Attribute] : Display files or Sub-Directory having specified attributes which can be any of the following.

A - Archive
H – Hidden
S - System 
D - Directory
R - Read Only
`-` - not

[/0: Sort order] : Specifies the order for starting the directory listing by primary name extension date or file size where the sorting order may be any of the following.

N - Alphabetical by primary name.
E - Alphabetical by Extension. 
D - Date and Time [First]
G - Directories grouped before files. 
" - " - Reverse Order.




Your Ad Here