computer help index
 
 
Search:
"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,490 tips!

File Extensions

BAT File Format

SUMMARY: The BAT file format defined. These are batch files for MS-DOS or MS-Windows systems.

The ".BAT" file format is a MS-DOS or MS-Windows batch file. In layman's terms, a BAT file contains a series of instructions for the computer to perform, usually for computer or file maintenance.

Without going into too much detail, some common commands you may find inside BAT files include:

COPY - Copies a file, sometimes from one directory to another

CD - Changes focus to a new directory to perform file operations there

DIR - Displays the list of files in the current directory

MD - Creates a new directory

MOVE - Moves a file, usually from one directory to another

RENAME - Renames a file

Just as TXT files, you can open BAT files in Notepad or another text editor. However, make sure you open your text editor first, and THEN open the .BAT file from within that application. This is because double-clicking BAT files usually run their contents as commands.

Since batch files can perform many different tasks, they can either be very useful or malicious in nature. For this reason, be VERY CAREFUL when receiving batch files through e-mail, instant messenger, or other questionable sources.

Windows users: NOTE that unless you have configured your computer with the file extension viewing tweak, it is possible that a filename that looks like it ends with ".bat", especially one attached to an e-mail message, actually has a hidden OTHER extension, meaning that if you double-click the file, it may actually run a computer virus!

 

 
Add: Del.icio.us | Digg | Furl | My Yahoo!
 

Discuss This Tip

Print This Tip

Get E-Mail When New Tips are Online

Return to the File Extensions page.


More in MalekTips:
Google GmailWindows XP and the KeyboardSites to Browse - Music



Move the Chat or Labels Section to the RightPrevent the Cursor from BlinkingInternet Archive's Audio Archive

RSS Feeds - Subscribe!
 

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Subscribe'.
 



( sample / details ) ( opt-out instructions )
 


 Free Offer! - Subscribe to the MalekTips computer help list and be one of the first to get new computer tips, articles, and download links! ( privacy policy )  ( opt-out instructions )
This page and its contents are copyright
©1997 - 2008 Envision Programming. ( copyright/disclaimer )

Home | Free Computer Help Newsletter! | Windows | Web Development | DOS and Batch Files | Removing Spyware
Digital Camera and Photography | Computer and Internet | Software | Microsoft Word
Computer Articles | About | Contribute a Tip | Link To Us! | Computer and Technology Links
RSS Feeds |  Contact Us | Advertising | Privacy Policy | Computer Help Forums