Anatomy of a Batch File. A batch file contains a sequence of commands for a computer OS. Batch files are called so due to their ability to batch or bundle commands together in a single file which otherwise would have to be executed individually. Batch files are typically created for command sequences for which the user may have repeated needs. Common uses of batch files are for deleting a series of files, running utilities and moving files. Once a batch file is executed it's read by a shell program which executes it line by line. A batch file is something similar to a shell script in UNIX like OS's .Batch files are intelligent enough to make decisions and performs operations only if a certain conditions exist or don't exist. Certain batch files are known to execute commands that are not available under DOS.
The commonly used batch file is AUTOEXE.bat which is a simple boot file which loads every time MS DOS starts and contains a list of commands used to run programs on MS DOS. The most apt comparison would be with a desktop shortcut in windows which runs programs. Though out dated, batch files are still used by system administrators to automate routine processes. Even though batch files support basic program flow commands such as IF and GOTO they are un-suited for general purpose programming. With a single command batch files can launch a program in the desired configuration as well as start an associated program such as a word processor to start once the main program is running. Sophisticated batch files exists which are capable of loading a part of program into upper memory/expandable memory thus freeing up conventional memory for utilities to run.
Practice ground for juvenile virus writers. Batch files have become a script kiddie favorite due to their simple syntax and low amount of programming knowledge required. Laughed upon by the advanced virus writers for their simplicity, batch file virus can cause massive damage very rapidly. Fortunately batch file viruses don't spread unless copied into another computer.
Batch File Comparing. File Comparing is the automated comparing of files or folders which are there in a file system. The commonly used file comparing programs are diff and cmf. Dff files displays the changes made per line and nowadays they have developed to include binary files. File comparison tools works by finding the Longest Common Sub Sequence (LCS).What LCS essentially does is it tries to find a new sequence from two sets of items such a way that the new sequence can be obtained by deleting certain items from the two older sets.
Certain other programs use the Longest Increasing sub sequence to differentiate between two files. File comparing softwares like Active file compare, Win Merge and Meld allows comparing, merging and synchronizing files. Active File compare has a built in File manager whereby you can compare two folders, copy files or load files for further work. WinMerge has a flexible editor with syntax highlighting, line numbers and word wrap.
- Related Videos
- Related Articles
- Ask / Related Q&A
- Comparing Two Files In The File Comparison Utility
- Software Solutions To Compare Acrobat Files
- A Need To Compare Pdf Files
- Compare HTML Files
- File Compare - Using File Compare Software To Improve Productivity
- Comparing Binary Files - Are There Any Benefits For End-user?
- Compare Two Text Files
- Methodology Behind The Comparison Of PDF Files




Gaming Computers: Laptop or Desktop?
By: Shane | 03/01/2010Can't decide on a laptop or a desktop for gaming? Consider the advantages and disadvantages of both types of system to make an educated decision.
How to Fix Corrupt Registry – Ways to Repair The Registry
By: Deb Vornholt | 03/01/2010If your computer is not running properly, there are several options available to correct your corrupt registry. Registry repair is something that many people are not aware should be done on a regular basis and it should certainly be done as soon as you start having problem to prevent your computer from slowing to a crawl.
My Wii Downloads Honest Review
By: Mishell | 03/01/2010The Wii Games are quite popular among gamers but there are some high end games which are quite expensive and few cannot think of playing them all. Either you buy one or two games because you think of your pocket. If all these days if you have been sacrificing your passion for Wii Games, the time has come now to play all those games that you dreamt off playing in your Wii Console and it is only possible with the help of My Wii Downloads.
How to Select the Right Saw
By: Kevin Vargian | 03/01/2010It is important that you choose a few good saw-blades and stick with them as saw-blades are quite expensive. It is for this reason why you should be extra careful while choosing saw-blade so that you do not end up with the wrong bunch of blades. Choose either a ten...
Speakers For Your Home Theatre System
By: Michael Kentag | 03/01/2010It is sad how many consumers make the mistake of buying the inappropriate speakers for their home theatre systems, what they do is follow the instructions of the untrained salesmen who often lead them buy audio speakers that are not up to their expectations or needs. The other type of...
To Work With a Mechanical Watch
By: Kevin Vargian | 03/01/2010While reading this article, the first question that may come to the mind of the reader is why would someone still use a mechanical watch that needs wounding in today's world? In a world filled with automatic and digital watches of the latest technology, it does seem like a waste...
FAQ About Stun Guns
By: Richard Armen | 03/01/2010Stun guns are one of the most effective types of nonlethal self defense device. A stun gun is a handheld, battery powered device designed to shock the target. The stun gun has two prongs on the end. By touching your attacker with these prongs and pulling the trigger, an electrical...
PSP GO Video Downloads – How To Download Video To PSP and PSP GO?
By: Mishell | 03/01/2010In this article, I will show you a place where you can download video from a reliable source and transfer to your PSP. There are many website that has unlimited video offering for you to download as many as you want. But there is one of the few that is legal and safer for PSP video downloads. Visit PSP Go Download Center for more information.
Travel Planning and Performing Tips by Experienced Tourist and Businessman
By: Sam Miller | 26/05/2009 | TravelThe first stage of almost any trip is planning stage. You should plan everything about where you are going to get and you should plan all resources that you might need in your journey. As for resources, typically you will need the same "resources" in any kind of travel, e.g. some...
Tips on Choosing Effective Service Outsourcing KPI
By: Sam Miller | 14/07/2008 | ManagementWhen you are in the process of developing service outsourcing KPI, then you will surely have to deal with what is known as the SLA, or the Service Level Agreement. This is actually the contract or the agreement both the outsourcer and the client enter, with all the stipulations, terms,...
The Six Metrics in an Effective KPI Methodology
By: Sam Miller | 14/07/2008 | ManagementIn the late 1980s, there was a revolution made on how businesses are managed and this is through the usage of the balanced scorecard. This is a management tool whose target is to see if the simple activities of the rank and file employees affect the overall goals of the...
Three KPI Examples
By: Sam Miller | 14/07/2008 | ManagementThere are many ways to measure an employee's performance. However, the most popular tool of today that is also used by many managers all over the world is the employee scorecard. This scorecard contains metrics with specified targets and these are called KPIs. KPI means key performance indicator. As the...
Top Issues in Programmer Productivity
By: Sam Miller | 14/07/2008 | ComputersA software program is something that anyone can be trained to use. Pretty easy if one will think about it. However, very few people have an idea how many hours are put in just to complete and develop software. There is a big issue in programmer productivity in the world...
What to Include in a Balanced Scorecard PPT Presentation
By: Sam Miller | 29/06/2008 | ManagementAmongst the many business and management tools in the corporate world right now, one of the most effective ones would certainly be the balanced scorecard. This is because the tool exists to measure a company's present status against the goals and objectives that the company had planned to achieve in...
Software Interface Testing and Other Types of Software Testing
By: Sam Miller | 23/06/2008 | ComputersSoftware interface testing is just one among the many types of software testing that are used by software engineers for software development. Automated testing is one of the most common software test approaches these days. With this, engineers would not have to perform tests or quality assurance manually. Nonetheless, automation of...
System Testing Approach: Black Box Testing
By: Sam Miller | 02/06/2008 | ComputersAlmost every aspect/phase of the Software Development and Testing life cycle finds application of Black box testing. The attempt is to find errors. These errors can be broadly categorized as: · The user interface contains errors. · The methods (functions) used are either syntactically incorrect or missing. · The data structures used in the...