CmdID

CmdID / Commands

mcopy

Copy MSDOS files to/from Unix. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Copy MSDOS files to/from Unix. Note: Use forward slash (/) instead of backlash (\) to refer to DOS subdirectories. Part of the mtools package.

Copy a file from Linux to an MS-DOS disk or image

mcopy path/to/source_file A:/path/to/target_fileIdentify

Copy a file from an MS-DOS disk to the current Linux directory

mcopy A:/path/to/source_file .Identify

Copy all files from an MS-DOS drive to a Linux directory

mcopy A: path/to/target_directoryIdentify

Copy a file into a DOS disk image file instead of a drive letter (:: represents the root directory of the DOS disk)

mcopy -i path/to/image.img path/to/source_file ::/path/to/target_fileIdentify

Copy a file from a disk image to the current directory

mcopy -i path/to/image.img ::/path/to/source_file .Identify

Copy a directory recursively to an MS-DOS disk

mcopy -s path/to/source_directory A:/path/to/target_directoryIdentify

Copy a file and preserve attributes

mcopy -p path/to/source_file A:/path/to/target_fileIdentify