Vidyalelo
Computer Science · Q14

Disk Operating System (DOS)

Engineering and GATE · Computer Science · question 14

Q14

Which command is used to display all the files having the (.exe) extension but different filename?

A.
Dir filename.*
B.
Dir filename.ext
C.
Dir *.sys
D.
Dir *.exe
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
First and second options are obviously wrong since specifying filename will list for that filename only. Since we need to list only with .exe extension fourth option is correct. Third option displays all files with sys extension.