While working with MS-DOS, which command is used to copy all files from the currently logged drive and directory with the extension .TXT to the drive A? A. COPY A: *.TXT B. COPY *.TXT A: C. COPY *.TXT C: D. COPY *.TXT ALL.TXT E. None of the above

COPY A: *.TXT
COPY *.TXT A:
COPY *.TXT C:
COPY *.TXT ALL.TXT E. None of the above

The correct answer is: A. COPY A: *.TXT

The COPY command is used to copy files from one location to another. The syntax for the COPY command is:

COPY source destination

The source is the file or files that you want to copy. The destination is the location where you want to copy the files.

In this case, the source is all files with the extension .TXT in the currently logged drive and directory. The destination is the drive A.

So, the command to copy all files with the extension .TXT from the currently logged drive and directory to the drive A is:

COPY A: *.TXT

Option B, COPY *.TXT A:, would copy all files with the extension .TXT from the currently logged drive and directory to the drive A. However, it would overwrite any files that already exist on the drive A with the same name.

Option C, COPY *.TXT C:, would copy all files with the extension .TXT from the currently logged drive and directory to the drive C.

Option D, COPY *.TXT ALL.TXT, would copy all files with the extension .TXT from the currently logged drive and directory to a file called ALL.TXT.

Option E, None of the above, is incorrect.

Exit mobile version