[ms-dos] copy the whole content of a floppy disk a: to c:\tbasic

 

In MS-DOS, the command to copy all files from drive A: (typically a floppy disk) to the directory C:\TBASIC is:

COPY A:\*.* C:\TBASIC

Explanation:

  • COPY — the file copy command.

  • A:\*.* — selects all files (*.*) on the A: drive, regardless of name or extension.

  • C:\TBASIC — the destination directory.

Notes:

  1. The directory must exist on C: before running this. If it doesn’t, create it first:

    MD C:\TBASIC
    
  2. If you want to include subdirectories, COPY alone won’t do that — it copies only files, not folders. To recursively copy directories (if your DOS version supports it), use:

    XCOPY A:\ C:\TBASIC /S /E
    
    • /S copies subdirectories except empty ones.

    • /E copies empty directories as well.

  3. If your MS-DOS version doesn’t include XCOPY (some early ones didn’t), you’ll have to manually create subdirectories and run COPY for each.

Would you like me to show a version that also verifies each file after copying (for data integrity on floppy transfers)?

 

posted @ 2025-10-25 00:44  profesor  阅读(3)  评论(0)    收藏  举报