A helpdesk technician needs to create a simple script that executes native Windows Command Prompt (cmd.exe) commands to automate workstation login tasks. Which file extension should be assigned to this script?
- .batAnswer
- B.ps1
- C.sh
- D.vbs
Answer
The .bat extension is used for standard Windows Batch scripts running in the Command Prompt (cmd.exe).
The .bat extension designates a batch file composed of sequential command-line directives designed to be parsed natively by the Windows Command Prompt (cmd.exe).
Step-by-Step Solution
Key Concept
Scripting File Extensions and Runtimes