Skip to main content
Service phase: Beta

This service is still in development. Give us your feedback or view this page on the current PRONOM service.

Format

Batch file (executable)

Summary

Name
Batch file (executable)
Identifiers
PUID: x-fmt/413
Format type
Text (Structured)
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
Note
https://www.tutorialspoint.com/batch_script/index.htm
File extensions
bat
Source
Digital Preservation Department / The National Archives

Changelog

  • Updated in V118

    Release date
    30 April 2024

    Batch File (Executable): Description created as part of PRONOM Research Week 2023. Submitted by Ross Spencer.