2 .TH mcopy 1 "19Jun21" mtools-4.0.31
4 mcopy - copy MSDOS files to/from Unix
17 This manpage has been automatically generated from mtools's texinfo
18 documentation, and may not be entirely accurate or complete. See the
19 end of this man page for details.
23 The \fR\&\f(CWmcopy\fR command is used to copy MS-DOS files to and from
24 Unix. It uses the following syntax:
30 \&\fR\&\f(CWmcopy [\fR\&\f(CW-bspanvmQT] [\fR\&\f(CW-D \fIclash_option\fR\&\f(CW] \fIsourcefile\fR\&\f(CW \fItargetfile\fR\&\f(CW
31 \&\fR\&\f(CWmcopy [\fR\&\f(CW-bspanvmQT] [\fR\&\f(CW-D \fIclash_option\fR\&\f(CW] \fIsourcefile\fR\&\f(CW [ \fIsourcefiles\fR\&\f(CW\&... ] \fItargetdirectory\fR\&\f(CW
32 \&\fR\&\f(CWmcopy [\fR\&\f(CW-tnvm] \fIMSDOSsourcefile\fR\&\f(CW
40 \&\fR\&\f(CWMcopy\fR copies the specified file to the named file, or copies
41 multiple files to the named directory. The source and target can be
42 either MS-DOS or Unix files.
44 The use of a drive letter designation on the MS-DOS files, 'a:' for
45 example, determines the direction of the transfer. A missing drive
46 designation implies a Unix file whose path starts in the current
47 directory. If a source drive letter is specified with no attached file
48 name (e.g. \fR\&\f(CWmcopy a: .\fR), all files are copied from that drive.
50 If only a single, MS-DOS source parameter is provided (e.g. "mcopy
51 a:foo.exe"), an implied destination of the current directory
52 (`\fR\&\f(CW.\fR') is assumed.
54 A filename of `\fR\&\f(CW-\fR' means standard input or standard output, depending
55 on its position on the command line.
57 \&\fR\&\f(CWMcopy\fR accepts the following command line options:
60 Text file transfer. Mcopy translates incoming carriage return/line
61 feeds to line feeds when copying from MS-DOS to Unix, and vice-versa when
62 copying from Unix to MS-DOS.
65 Batch mode. Optimized for huge recursive copies, but less secure if a
66 crash happens during the copy.
69 Recursive copy. Also copies directories and their contents
72 Preserves the attributes of the copied files
75 When mcopying multiple files, quits as soon as one copy fails (for
76 example due to lacking storage space on the target disk)
79 Text (ASCII) file transfer. \fR\&\f(CWASCII\fR translates incoming carriage
80 return/line feeds to line feeds.
83 Text (ASCII) file transfer with character set conversion. Differs from
84 \&\fR\&\f(CW-a\fR in the \fR\&\f(CWASCII\fR also translates incoming PC-8 characters
85 to ISO-8859-1 equivalents as far as possible. When reading DOS files,
86 untranslatable characters are replaced by '\fR\&\f(CW#\fR'; when writing DOS files,
87 untranslatable characters are replaced by '\fR\&\f(CW.\fR'.
90 No confirmation when overwriting Unix files. \fR\&\f(CWASCII\fR doesn't
91 warn the user when overwriting an existing Unix file. If the target
92 file already exists, and the \fR\&\f(CW-n\fR option is not in effect,
93 \&\fR\&\f(CWmcopy\fR asks whether to overwrite the file or to rename the new
94 file (see \(ifname clashes\(is) for details). In order to switch off
95 confirmation for DOS files, use \fR\&\f(CW-o\fR.
98 Preserve the file modification time.
101 Verbose. Displays the name of each file as it is copied.
104 Unlike MS-DOS, the '+' operator (append) from MS-DOS is not
105 supported. However, you may use \fR\&\f(CWmtype\fR to produce the same effect:
110 mtype a:file1 a:file2 a:file3 >unixfile
111 mtype a:file1 a:file2 a:file3 | mcopy - a:msdosfile
121 .SH Viewing\ the\ texi\ doc
122 This manpage has been automatically generated from mtools's texinfo
123 documentation. However, this process is only approximative, and some
124 items, such as crossreferences, footnotes and indices are lost in this
125 translation process. Indeed, these items have no appropriate
126 representation in the manpage format. Moreover, not all information has
127 been translated into the manpage version. Thus I strongly advise you to
128 use the original texinfo doc. See the end of this manpage for
129 instructions how to view the texinfo doc.
132 To generate a printable copy from the texinfo doc, run the following
138 ./configure; make dvi; dvips mtools.dvi
147 To generate a html copy, run:
152 ./configure; make html
158 \&\fRA premade html can be found at
159 \&\fR\&\f(CW\(ifhttp://www.gnu.org/software/mtools/manual/mtools.html\(is\fR
162 To generate an info copy (browsable using emacs' info mode), run:
167 ./configure; make info
175 The texinfo doc looks most pretty when printed or as html. Indeed, in
176 the info version certain examples are difficult to read due to the
177 quoting conventions used in info.