The National Archives
Search our website
  • Search our website
  • Search our records
   
 
Image of software box and CD PRONOM
Welcome (PRONOM  home page) About PRONOM Add an entry
Search Help - opens in a new window Information resources - opens in a new window
 
 
 

*Details: File format summary

   
 

 

Search by keyword Search by file format Search by PUID Search by software Search by vendor Search by lifecycles Search by Migration Pathway

Details for:

Save as... XML | CSV Printer friendly version
 
 

Summary

Name Batch file (executable)
Version  
Other names  
Identifiers PUID:  x-fmt/413
Family  
Classification Text (Structured)
Disclosure  
Description A Batch file is a scripting language native to MS-DOS, Microsoft Windows, and formerly OS/2. Scripting allows users to chain commands that are available to an operating system together to complete a set of tasks. Scripting provides the means to save the commands required for repetetive tasks and use them over and over again. Batch files are written as plain-text and so can potentially be understood by anyone opening these in a plain-text editor. Commands can range from operating system specific commands to command-line applications installed by the user. The existence of variables, loops, and conditional statements means that batch files can be fairly complex in their operation and may take some understanding to understand exactly what they're doing. In the case of receiving legacy Batch files into an archive, commands may no longer be accessible, breaking parts of a batch file useless. Users might want to be wary about executing batch files outside of a boxelsboxed environment. Comments are marked with 'Rem' ('remark') and may help users to decode what a script is doing. A script will usually begin with the command '@echo off' which prevents all commands from being printed to the screen during the course of a script's execution but can be switched on again as necessary to help with debugging. Batch file syntax can still be learned and understood, for example from sites such as Tutorialspoint: https://www.tutorialspoint.com/batch_script/index.htm
Orientation Text
Byte order  
Related file formats None.
Technical Environment  
Released  
Supported until  
Format Risk  
Developed by None.
Supported by None.
Source Digital Preservation Department / The National Archives
Source date 02 Feb 2007
Source description 04/2024 (v.118)- Description added. Submitted by Ross Spencer as part of PRONOM Research Week 2023.
Last updated 15 Apr 2024
Note https://www.tutorialspoint.com/batch_script/index.htm
Top of page Top of page
 
         
The National Archives Newsletter Icon

Send me The National Archives’ newsletter

A monthly round-up of news, blogs, offers and events.