nerdexam
CompTIA

220-1102 · Question #440

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?

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

How the community answered

(45 responses)
  • A
    91% (41)
  • B
    4% (2)
  • C
    2% (1)
  • D
    2% (1)

Why each option

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.

A.batCorrect

A .bat file (batch file) is a script that contains a series of commands for the command interpreter to execute. Placing a batch file with copy commands in the Windows Startup folder will automatically run those commands, such as copying a .pst file to a network drive, every time the user logs in.

B.dll

A .dll (Dynamic Link Library) is a compiled library of code used by programs, not an executable script for user-level automation.

C.ps1

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.txt

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

Source: 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 Practice