Imported Upstream version 4.0.24
[platform/upstream/mtools.git] / mcopy.1
1 '\" t
2 .TH mcopy 1 "22Mar20" mtools-4.0.24
3 .SH Name
4 mcopy - copy MSDOS files to/from Unix
5 '\" t
6 .de TQ
7 .br
8 .ns
9 .TP \\$1
10 ..
11
12 .tr \(is'
13 .tr \(if`
14 .tr \(pd"
15
16 .SH Note\ of\ warning
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.
20 .PP
21 .SH Description
22 .PP
23 The \fR\&\f(CWmcopy\fR command is used to copy MS-DOS files to and from
24 Unix. It uses the following syntax:
25 .PP
26  
27 .nf
28 .ft 3
29 .in +0.3i
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
33 .fi
34 .in -0.3i
35 .ft R
36 .PP
37  
38 \&\fR
39 .PP
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.
43 .PP
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.
49 .PP
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.
53 .PP
54 A filename of `\fR\&\f(CW-\fR' means standard input or standard output, depending
55 on its position on the command line.
56 .PP
57 \&\fR\&\f(CWMcopy\fR accepts the following command line options:
58 .TP
59 \&\fR\&\f(CWt\fR\ 
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.
63 .TP
64 \&\fR\&\f(CWb\fR\ 
65 Batch mode. Optimized for huge recursive copies, but less secure if a
66 crash happens during the copy.
67 .TP
68 \&\fR\&\f(CWs\fR\ 
69 Recursive copy.  Also copies directories and their contents
70 .TP
71 \&\fR\&\f(CWp\fR\ 
72 Preserves the attributes of the copied files
73 .TP
74 \&\fR\&\f(CWQ\fR\ 
75 When mcopying multiple files, quits as soon as one copy fails (for
76 example due to lacking storage space on the target disk)
77 .TP
78 \&\fR\&\f(CWa\fR\ 
79 Text (ASCII) file transfer.  \fR\&\f(CWASCII\fR translates incoming carriage
80 return/line feeds to line feeds.
81 .TP
82 \&\fR\&\f(CWT\fR\ 
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'.
88 .TP
89 \&\fR\&\f(CWn\fR\ 
90 No confirmation when overwriting Unix files.  \fR\&\f(CWASCII\fR doesn't warn
91 the user when overwriting an existing Unix file. If the target file already exists,
92 and the \fR\&\f(CW-n\fR option is not in effect, \fR\&\f(CWmcopy\fR asks whether to
93 overwrite the file or to rename the new file (\(ifname clashes\(is) for
94 details).  In order to switch off confirmation for DOS files, use \fR\&\f(CW-o\fR.
95 .TP
96 \&\fR\&\f(CWm\fR\ 
97 Preserve the file modification time.
98 .TP
99 \&\fR\&\f(CWv\fR\ 
100 Verbose. Displays the name of each file as it is copied.
101 .PP
102 .SH Bugs
103 Unlike MS-DOS, the '+' operator (append) from MS-DOS is not
104 supported. However, you may use \fR\&\f(CWmtype\fR to produce the same effect:
105  
106 .nf
107 .ft 3
108 .in +0.3i
109 mtype a:file1 a:file2 a:file3 >unixfile
110 mtype a:file1 a:file2 a:file3 | mcopy - a:msdosfile
111 .fi
112 .in -0.3i
113 .ft R
114 .PP
115  
116 \&\fR
117 .PP
118 .SH See\ Also
119 Mtools' texinfo doc
120 .SH Viewing\ the\ texi\ doc
121 This manpage has been automatically generated from mtools's texinfo
122 documentation. However, this process is only approximative, and some
123 items, such as crossreferences, footnotes and indices are lost in this
124 translation process.  Indeed, these items have no appropriate
125 representation in the manpage format.  Moreover, not all information has
126 been translated into the manpage version.  Thus I strongly advise you to
127 use the original texinfo doc.  See the end of this manpage for
128 instructions how to view the texinfo doc.
129 .TP
130 * \ \ 
131 To generate a printable copy from the texinfo doc, run the following
132 commands:
133  
134 .nf
135 .ft 3
136 .in +0.3i
137     ./configure; make dvi; dvips mtools.dvi
138 .fi
139 .in -0.3i
140 .ft R
141 .PP
142  
143 \&\fR
144 .TP
145 * \ \ 
146 To generate a html copy,  run:
147  
148 .nf
149 .ft 3
150 .in +0.3i
151     ./configure; make html
152 .fi
153 .in -0.3i
154 .ft R
155 .PP
156  
157 \&\fRA premade html can be found at
158 \&\fR\&\f(CW\(ifhttp://www.gnu.org/software/mtools/manual/mtools.html\(is\fR
159 .TP
160 * \ \ 
161 To generate an info copy (browsable using emacs' info mode), run:
162  
163 .nf
164 .ft 3
165 .in +0.3i
166     ./configure; make info
167 .fi
168 .in -0.3i
169 .ft R
170 .PP
171  
172 \&\fR
173 .PP
174 The texinfo doc looks most pretty when printed or as html.  Indeed, in
175 the info version certain examples are difficult to read due to the
176 quoting conventions used in info.
177 .PP