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.
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)- A91% (41)
- B4% (2)
- C2% (1)
- D2% (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 .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.
A .dll (Dynamic Link Library) is a compiled library of code used by programs, not an executable script for user-level automation.
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.
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
Community Discussion
No community discussion yet for this question.