Which command is used to copy all files from drive a with extension .txt to the currently logged drive and directory?
A. Copy a. *.txt
B. Copy *.txt a:
C. Copy *.txt c:
D. Copy *.txt all.txt
Answer: Option B
Solution (By Examveda Team)
Copy *.txt a: is the command used in DOS to copy all files with the extension .txt from drive A to the currently logged drive and directory.The
copy command in DOS is used to copy files from one location to another.*.txt specifies that all files with the .txt extension should be copied.a: indicates the source drive from where the files should be copied (drive A in this case).The destination, which is not explicitly shown but assumed, is the currently logged drive and directory.
Copy a. *.txt is not a valid syntax in DOS for copying files; it has incorrect placement of the source and destination.
Copy *.txt c: would copy .txt files to drive C, not to the currently logged drive and directory.
Copy *.txt all.txt would attempt to copy all .txt files into a single file named "all.txt", which is not the same as copying to the currently logged directory.
Therefore, the correct answer is Option B: Copy *.txt a:.
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