A batch file is the one that contains many commands... which can be run on a system to perform series of commands in their sequential order. Why one makes it ... well to save themselves from the burden of typing each command one by one in their sequential order to get something done.
Mostly these are used for system diagonostics and system administrators love them... coz just be scheduling it at the right time they can get the statistical data to unravel any performance glitches that the system might face.
2006-11-30 22:11:14
·
answer #1
·
answered by Anonymous
·
2⤊
0⤋
The operating system has been designed to recognise files by their secondary names and also based on its structure. All executable files have the secondary name as .exe and their structure is binary ( machine language). All the batch files have their secondary name as .bat and their structure is ASCII ( normal understandable characters). Whenever the operating system encounters a .bat file ( that is when you type it and press enter) it immediately recognizes it as a batch file and looks for the operating system commands inside this file. Each command is typed in one line only ( the new line acts as pressing the enter key) The batch file can also be written to accept input which would be used as a parameter to the system command eg. Dir a*.* or Dir b*.* the input of a or b could be received from the user and placed after the dir command. For more information on batch command go to http://dos.rsvs.net/DOSPAGE/BATCHCOM.HTM.
2006-12-01 06:21:20
·
answer #2
·
answered by ssmindia 6
·
0⤊
0⤋
Batch file is a file with an extension of .BAT, containing a list of commands or program routines that the computer will execute in sequence. When a batch file is run, the shell program (usually COMMAND.COM or cmd.exe) reads the file and executes its commands, normally line-by-line. A batch file is analogous to a shell script in Unix-like operating systems.
AUTOEXEC.BAT is a special batch file that is executed during the booting process.
2006-12-01 06:12:18
·
answer #3
·
answered by Anonymous
·
1⤊
0⤋
well ok..you have a servant ( an OS or a programme )..who does all the housework for you...now you follow a routine in the morning to go to work..and the servant have to prepare the breakfats and the related tasks for getting things done in time....on the first day of the job you give him the directions( preset commands) and later on he/she does the same everyday ...it saves you from telling him everyday what too do when to do ....
this analogy works for computers too where we can make a batch file which performs a preset order of actions on a file or a group of files....
these batch files can also be used in various softwares where you can create a batch file to perform certain common actions on the file/s
2006-12-01 06:55:26
·
answer #4
·
answered by Anonymous
·
0⤊
0⤋