While working with MS-DOS which command is used to copy all files with extension .txt into one file named all.txt?
A. Copy a: *.txt
B. Copy *.txt a:
C. Copy *.txt c:
D. Copy *.txt all.txt
Answer: Option D
Solution (By Examveda Team)
To copy all files with the extension .txt into one file named all.txt in MS-DOS, you would use the copy command with the source files wildcard and specify the destination file. Here’s how each option works:Option A: Copy a: *.txt attempts to copy all .txt files from drive a: but does not specify a destination file.
Option B: Copy *.txt a: attempts to copy all .txt files to drive a: without specifying a destination file name.
Option C: Copy *.txt c: attempts to copy all .txt files to drive c: without specifying a destination file name.
Option D: Copy *.txt all.txt correctly copies all .txt files in the current directory to a single file named all.txt.
Therefore, Option D is the correct command to copy all files with the extension .txt into one file named all.txt in MS-DOS.
Related Questions on Disk Operating System (DOS)
In MS-Dos what command you will use to display system date?
A. Date command
B. Ver command
C. Disk command
D. Format command
While working with Ms-Dos which command transfers a specific file from one disk to another?
A. Copy
B. Diskcopy
C. Time
D. Rename
If you don't know the current time, which command will you use to display
A. Copy
B. Ver
C. Time
D. Format

Join The Discussion