March 30, 2011

 Configuration Commands

BREAK:
This Command is used to set decondition of control and C or ^Break to be effective or not interrupt a programme.
Syntax : Break ON / OFF

If the break is said to on then the user can interrupt a program by using ^Break and the otherwise this is not available to.


SHELL:
It comes out to previous level of command processor or interpreter for a time.
DEVICE:
Specifies a device driver file to located into the RAM to give support to the devices.
Syntax : Device [ Drive: ] [ Path] Device drive.


BUFFERS:
Specifies the number of buffers that can be maintained in the memory at a time.
Syntax : Buffers = NNN
Where the NNN refers to the Maximum number of buffers that the user is going to use.


FILES:
This Command is used to specify the Maximum number of files that can be opened at the time. Syntax: Files = NNN


LAST DRIVE:
It specifies the legal drive that can be operated or specified by the user.
Syntax : Last Drive = [ Largest Legal Drive Letter]


REM:
This Command is used to deactivate the command in the configuration file.
Syntax : Rem REMARK / NOTE / COMMAND


The following are the system commands that can be used at the command prompt.

DATE: Allows to change and display the system date.

TIME; Allows to change and display the system time.

MODE: Used to configure the printers, display, baud rate, key board type, matic rate and code page switching.

PROMPT: To change the system prompt. 


March 29, 2011

 Batch Files


You see your interpreter Dos contains a file called Command. Com. Which is the actual Command interpreter between you and your computer, which besides recognizing your Command also Contains a set of routines for processing batch files known as the batch file processor. Whenever you enter a Command the Processor checks if its an internal Command then if not it checks the disk for a file called by the given name. The Sequence of search is like this first it searches for the file with extension. Can, if not available it searches for the extension. Exe still it not available it searches for file with extension. BAT and Still not available it gives a message “bad command or file name'. See how true the command is if the file is founded with. BAT Extension the Control is taken over by the batch file processor. This Processor reads the Commands step by step and executes then one after another and when the commands are over it turns Control to the Command interpreter which is term returns you with the prompt. If you wish to stop or break the batch file extension is between then you press 'Control' and 'C' Key Combination the prompt you get is : terminate batch off  [Y/N]

If you type 'Y' it aborts the operation are 'N' is typed the execution Contains from that point from where the echo was suspended.


HOWTO CREATE A BATCH FILE :
      
To Create a Batch file two Commands are used - - - - - Copy can, Edit.
Type the following prompt: Copy con A.BAT and press
A means Name. BAT Extension. Here can means Console (your key board.

Prompt à Copy con A.BAT you will --- the cursor below 'A'.  Now Type DIR.
Copy A: ABC TXT b:
DEL A : ABC TXT
(1)

Now press F6 (or) Control + Z key Combination. In this it is A, so you type prompt à you will see the Command in the A.BAT Can right -- to action to so instead of typing all those Commands one after another performed the same job by Just typing the file name.


BATCH FILES :

(a)
ECHO
(b)
REM
(c)
CALL
(d)
PAUSE
(e)
@ COMMAND

Batch file have their own set of Suspended support Commands known as sub Commands. ,

BATCH COMMANDS :

ECHO
This Command is used to set the states of echo effect on or off. The default states of echo is on.
It is also used to display some massages on the monitor as the file is processed.
Syntax : ECHO ON / OFF,  MESSAGE


@:
This Command is used to suppress the any information following this Command.
Syntax : @ MESSAGE / COMMAND


REM:
This Command is used to make or notes in a file. The information or statement that follows the REM Command is not executable because REM is a NON Executable statement.
Syntax : REM Statement /                                  / [Command]


PAUSE:
It Pauses the command interpreter or processor for some time until we press any key from the key board.
Syntax : PAUSE
                It displays the following message [ press any key to continue]


CALL:
This command is used to call a batch file that is called is over that the control is return to the original batch file from where the batch file was called,
Syntax : Batch file name.


March 17, 2011

 Types of Commands

DOS Commands are two types
1) Internal Commands.

2) External Commands.


INTERNAL COMMANDS:


The internal commands are those which are automatically loaded in the memory of your personal computer when DOS is loaded. Then those commands can be used without the need of any file or diskette. The internal commands are simple and are used for common jobs, such as copying, erasing and renaming file or changing the directory and changing the current date, time in your personal computer.


All internal commands are called memory resident commands.

All internal commands are part of Command.com


These are do not require any special files for being executing and are brought into the memory as soon as the computer is switched on.


List of Internal Commands :


DIR
CD
COPY
MD
DEL
CLS
TYPE
DATE
TIME
PATH
REN
RD1
BREAK
CALL
ECHO
EXIT
GOTO
IF
PAUSE
PROMPT
REM
SET
SHIFT
VER
VERIFY
VOL


EXTERNAL COMMANDS:


The external commands are used for relative complex jobs such as copying the entire diskette, comparing or joining files, sorting text and formatting a diskette. For using external commands, you need to use corresponding file available in the DOS diskettes or the hard disk.


All External commands are disk  resident commands. These commands will be loaded at the use of request.

Any command which contains COM, EXE, BAT may called as external commands.


These are require certain special DOS files for being executed.


List of External Commands :



FORMAT
ATTRIB
CHKDSK
TREE
XCOPY
DISKCOPY
PRINT
SWISS
BACKUP
GRAPHICS
CHKDSK
LABLE
DISK.COM
MODE
DELTREE
MORE
UNFORMAT
FDISK
SORT
UNDELATE
DOS-KEY
MOVE
EDIT
SCANDISK


Various DOS Command List :

List of Directory Commands :



DIR
MD
RD
TREE
PATH
SUBST

List of File Management Commands :



COPY
XCOPY
DEL
RENAME
ATTIB
BACKUP
RESTORE
FIND
SYS
COPYCON
EDIT


List of File Disk Management Commands :



FORMAT
CHKDSK
DISKCOPY
LABLE
VOL
DISKCOMP
COMP
RECOVER

List of File General Commands :



TYPE
DATE
TIME
PROMPT

List of Batch File Commands :



CALL
CHOICE
@
IF
FOR
GOTO
PAUSE
REM
SET
SHIFT

List of DOS Utility File Commands :



MEMMAKER
MSAV
DBLSPACE
MOVE
DEFRAG
DELTREE
MSBACKUP
SCANDISK
SETVER
UNDELETE
UNFORMAT
XCOPY

Your Ad Here