220-1002 · Question #142
In which of the following file extension types would a user expect to see the command. "net use T:\ \server\files'?
The correct answer is A. .bat. 'net use' is a Windows command-line utility used to map network drives. Command-line instructions like this are placed in batch files, which use the .bat extension (A). A .bat file is a script that Windows Command Prompt (cmd.exe) interprets and executes line by line. VBScript…
Question
In which of the following file extension types would a user expect to see the command. "net use T:\ \server\files'?
Options
- A.bat
- B.vbs
- C.js
- D.py
How the community answered
(47 responses)- A89% (42)
- B6% (3)
- C2% (1)
- D2% (1)
Explanation
'net use' is a Windows command-line utility used to map network drives. Command-line instructions like this are placed in batch files, which use the .bat extension (A). A .bat file is a script that Windows Command Prompt (cmd.exe) interprets and executes line by line. VBScript (.vbs, B) uses Visual Basic syntax and would call network functions differently. JavaScript (.js, C) runs in browsers or Node.js environments and does not natively execute Windows shell commands. Python (.py, D) would use libraries like 'subprocess' to run shell commands, not raw command syntax. The .bat extension is the native home for Windows shell commands like 'net use'.
Topics
Community Discussion
No community discussion yet for this question.