CompTIA A+ Core 2 Exam: File Extensions and Commands

File Extensions and Commands

Question

In which of the following file extension types would a user expect to see the command.

'net use T:\\server\files'?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.

The correct answer is A. .bat.

A batch file is a script file containing a series of commands that are processed in sequence by the operating system. Batch files are often used to automate repetitive tasks, and they typically have a .bat file extension.

The command net use T:\\server\files is used to map a network drive to the letter "T:". This command is typically used in a batch file to automate the process of mapping a network drive.

Option B, .vbs, refers to a Visual Basic Script file. This file extension is used for scripts written in the Visual Basic scripting language, which is often used for system administration tasks.

Option C, .js, refers to a JavaScript file. This file extension is used for scripts written in the JavaScript programming language, which is often used for web development.

Option D, .py, refers to a Python file. This file extension is used for scripts written in the Python programming language, which is often used for scientific computing, data analysis, and web development.

Therefore, the command net use T:\\server\files is most likely to be found in a batch file with a .bat file extension.