nerdexam
CompTIACompTIA

220-1102 · Question #440

220-1102 Question #440: Real Exam Question with Answer & Explanation

The correct answer is A: .bat. To automate copying a .pst file at Windows login using the Startup folder, a batch script with a .bat file extension is the most suitable option. Batch scripts are simple text files containing commands executed by the command interpreter.

Operating Systems

Question

Which of the following file types would be used in the Windows Startup folder to automate copying a personal storage table (.pst file) to a network drive at log-in?

Options

  • A.bat
  • B.dll
  • C.ps1
  • D.txt

Explanation

To automate copying a .pst file at Windows login using the Startup folder, a batch script with a .bat file extension is the most suitable option. Batch scripts are simple text files containing commands executed by the command interpreter.

Common mistakes.

  • B. A .dll (Dynamic Link Library) is a compiled library of code used by programs, not an executable script for user-level automation.
  • C. A .ps1 file is a PowerShell script; while it could perform the task, .bat is a more historically common and direct choice for simple file operations placed directly in the Startup folder.
  • D. A .txt file is a plain text document and is not executable by the operating system for automation purposes.

Concept tested. Windows startup script types

Reference. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/batch-parameters

Topics

#Windows Startup#Batch scripting#System automation#File operations

Community Discussion

No community discussion yet for this question.

Full 220-1102 PracticeBrowse All 220-1102 Questions