As an administrator for Crucial Technologies you commonly have to run a set of commands using Windows Command Prompt (CMD). You don’t want to continue to have to type each command out individually so you would like to create a script to make the process more automated. What file extension would you use when creating the script?
A .bat file is the file extension when creating scripts for use with Windows Command Prompt. sh is a common extension for Bash/Linux scripts and ps1 is for PowerShell and not Command Prompt.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a .bat file and how does it work?
Open an interactive chat with Bash
What are the differences between batch files and PowerShell (.ps1) scripts?
Open an interactive chat with Bash
What types of tasks can I automate using .bat files?