Server Administration
Which script type traditionally stores Windows Command Prompt commands in a .bat file?
Show the answer
Correct answerC. Batch
AWhy not this: Bash scripts use Bash syntax rather than Windows Command Prompt syntax.
BWhy not this: Visual Basic Script normally uses .vbs files and a Windows Script Host interpreter.
CWhy this is right: Batch files commonly use .bat and contain commands interpreted by cmd.exe.
DWhy not this: PowerShell normally uses .ps1 files, not .bat files.
Batch files contain commands interpreted by Windows cmd.exe and commonly use the .bat extension. PowerShell scripts normally use .ps1 and run through a different interpreter.