In MS-DOS file management, which command should be used to copy a specific file from one disk or directory to another?

Difficulty: Easy

Correct Answer: COPY

Explanation:


Introduction / Context:
Classic MS-DOS environments rely on simple commands to manage files. Knowing which command moves an individual file versus cloning an entire disk prevents accidental data loss and speeds up routine administration.


Given Data / Assumptions:

  • User needs to transfer a specific file (e.g., REPORT.TXT) between locations.
  • Source and destination can be different drives or directories.
  • No need to duplicate boot sectors or disk structure.


Concept / Approach:
For single-file operations, the COPY command copies the selected file(s) to a target path. DISKCOPY duplicates an entire disk, sector by sector. RENAME only changes a file’s name, and FORMAT prepares a disk with a new filesystem, erasing previous data. Therefore, COPY is the correct and safe choice for an individual file transfer.


Step-by-Step Solution:

1) Identify file and destination, e.g., A:\REPORT.TXT to C:\DOCS\.2) Run: COPY A:\REPORT.TXT C:\DOCS\3) Verify completion message displaying the number of file(s) copied.4) List destination to confirm: DIR C:\DOCS\REPORT.TXT


Verification / Alternative check:
Attempting DISKCOPY would ask for source/destination diskettes and copy the entire disk, not a single file—confirming it is unsuitable for the requirement.


Why Other Options Are Wrong:

  • DISKCOPY: Clones whole disks, not specific files.
  • RENAME: Changes a file name; does not move or duplicate it.
  • FORMAT: Erases and prepares media; dangerous for data retention.
  • None of the above: Incorrect because COPY is appropriate.


Common Pitfalls:
Using wildcards unintentionally (e.g., COPY *.DOC) and overwriting files without confirming the destination path.


Final Answer:
COPY

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion