Soru

Zorluk: KolayBasic Scripting Languages and Constructs

A desktop technician is inspecting a legacy administrative script designed to execute natively using the Windows Script Host (WSH) engine. Which of the following file extensions is used for this script?

  1. .vbsCevap
  2. B
    .bat
  3. C
    .ps1
  4. D
    .sh

Cevap

The .vbs extension is used for VBScript files executed by Windows Script Host.
The correct answer is the .vbs file extension. VBScript (Visual Basic Scripting Edition) uses the .vbs extension and runs natively on Windows systems via the Windows Script Host (WSH) engine.

Adım Adım Çözüm

1
Identify the scripting runtime environment specified in the scenario.
The scenario references a legacy administrative script running under the Windows Script Host (WSH) engine.
Specific file extensions correspond to distinct execution engines in Windows.
2
Match the Windows Script Host engine to its supported file extension.
VBScript files end with the .vbs file extension.
WSH natively parses and executes Visual Basic Scripting Edition (.vbs) files.

Anahtar Kavram

Basic Scripting File Extensions
Bu soruyu puanla