mcopy—Copy MS-DOS files to/from UNIX
mcopy [ -tnvmoOsSrRA ] sourcefile targetfile
mcopy [ -tnvmoOsSrRA ] sourcefile [ sourcefiles… ] targetdirectory
mcopy [ –tnvm ] MSDOSsourcefile
mcopy copies the specified file to the named file, or copies multiple files to the named directory. The source and target can be either MS-DOS or UNIX files.
The use of a drive letter designation on the MS-DOS files—a: for example—determines the direction of the transfer. A missing drive designation implies a UNIX file whose path starts in the current directory. If a source drive letter is specified with no attached filename (for example, mcopy a: .), all files are copied from that drive.
If only a single, MS-DOS source parameter is provided (for example, mcopy a:foo.exe), an implied destination of the current directory (.) is assumed.
A filename of – means standard input or standard output, depending on its position on the command line.
mcopy will allow the following command-line options:
t Text file transfer. mcopy will translate incoming carriage return/line feeds to line feeds.
n No warning. mcopy will not warn the user when overwriting an existing file.
v Verbose mode.
m Preserve the file modification time.
If the target file already exists, and the -n option is not in effect, mcopy asks whether to overwrite the file or to rename the new file. (See the mtools(1) man page for details.)