Initial import package mtools: Programs for accessing MS-DOS disks without mounting...
[profile/ivi/mtools.git] / mcopy.1
1 .TH mcopy 1 "03Nov09" mtools-4.0.12
2 .SH Name
3 mcopy - copy MSDOS files to/from Unix
4 '\" t
5 .de TQ
6 .br
7 .ns
8 .TP \\$1
9 ..
10
11 .tr \(is'
12 .tr \(if`
13 .tr \(pd"
14
15 .SH Note\ of\ warning
16 This manpage has been automatically generated from mtools's texinfo
17 documentation, and may not be entirely accurate or complete.  See the
18 end of this man page for details.
19 .PP
20 .SH Description
21 .iX "p mcopy"
22 .iX "c Reading MS-DOS files"
23 .iX "c Writing MS-DOS files"
24 .iX "c Copying MS-DOS files"
25 .iX "c Concatenating MS-DOS files"
26 .iX "c Text files"
27 .iX "c CR/LF conversions"
28 .PP
29 The \fR\&\f(CWmcopy\fR command is used to copy MS-DOS files to and from
30 Unix. It uses the following syntax:
31 .PP
32  
33 .nf
34 .ft 3
35 .in +0.3i
36 \&\fR\&\f(CWmcopy [\fR\&\f(CW-bspanvmQT] [\fR\&\f(CW-D \fIclash_option\fR\&\f(CW] \fIsourcefile\fR\&\f(CW \fItargetfile\fR\&\f(CW
37 \&\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
38 \&\fR\&\f(CWmcopy [\fR\&\f(CW-tnvm] \fIMSDOSsourcefile\fR\&\f(CW
39 .fi
40 .in -0.3i
41 .ft R
42 .lp
43  
44 \&\fR
45 .PP
46 \&\fR\&\f(CWMcopy\fR copies the specified file to the named file, or copies
47 multiple files to the named directory.  The source and target can be
48 either MS-DOS or Unix files.
49 .PP
50 The use of a drive letter designation on the MS-DOS files, 'a:' for
51 example, determines the direction of the transfer.  A missing drive
52 designation implies a Unix file whose path starts in the current
53 directory.  If a source drive letter is specified with no attached file
54 name (e.g. \fR\&\f(CWmcopy a: .\fR), all files are copied from that drive.
55 .PP
56 If only a single, MS-DOS source parameter is provided (e.g. "mcopy
57 a:foo.exe"), an implied destination of the current directory
58 (`\fR\&\f(CW.\fR') is assumed.
59 .PP
60 A filename of `\fR\&\f(CW-\fR' means standard input or standard output, depending
61 on its position on the command line.
62 .PP
63 \&\fR\&\f(CWMcopy\fR accepts the following command line options:
64 .TP
65 \&\fR\&\f(CWt\fR\ 
66 Text file transfer.  Mcopy translates incoming carriage return/line
67 feeds to line feeds when copying from Dos to Unix, and vice-versa when
68 copying from Unix to Dos.
69 .TP
70 \&\fR\&\f(CWb\fR\ 
71 Batch mode. Optimized for huge recursive copies, but less secure if a
72 crash happens during the copy.
73 .TP
74 \&\fR\&\f(CWs\fR\ 
75 Recursive copy.  Also copies directories and their contents
76 .TP
77 \&\fR\&\f(CWp\fR\ 
78 Preserves the attributes of the copied files
79 .TP
80 \&\fR\&\f(CWQ\fR\ 
81 When mcopying multiple files, quits as soon as one copy fails (for
82 example due to lacking storage space on the target disk)
83 .TP
84 \&\fR\&\f(CWa\fR\ 
85 Text (Ascii) file transfer.  \fR\&\f(CWMcopy\fR translates incoming carriage
86 return/line feeds to line feeds.
87 .TP
88 \&\fR\&\f(CWT\fR\ 
89 Text (Ascii) file transfer with charset conversion.  Differs from
90 \&\fR\&\f(CW-a\fR in the \fR\&\f(CWMcopy\fR also translates incoming PC-8 characters
91 to ISO-8859-1 equivalents as far as possible.  When reading DOS files,
92 untranslatable characters are replaced by '\fR\&\f(CW#\fR'; when writing DOS files,
93 untranslatable characters are replaced by '\fR\&\f(CW.\fR'.
94 .TP
95 \&\fR\&\f(CWn\fR\ 
96 No confirmation when overwriting Unix files.  \fR\&\f(CWMcopy\fR doesn't warn
97 the user when overwriting an existing Unix file. If the target file already exists,
98 and the \fR\&\f(CW-n\fR option is not in effect, \fR\&\f(CWmcopy\fR asks whether to
99 overwrite the file or to rename the new file (\(ifname clashes\(is) for
100 details).  In order to switch off confirmation for DOS files, use \fR\&\f(CW-o\fR.
101 .TP
102 \&\fR\&\f(CWm\fR\ 
103 Preserve the file modification time.
104 .TP
105 \&\fR\&\f(CWv\fR\ 
106 Verbose. Displays the name of each file as it is copied.
107 .PP
108 .SH Bugs
109 Unlike MS-DOS, the '+' operator (append) from MS-DOS is not
110 supported. However, you may use \fR\&\f(CWmtype\fR to produce the same effect:
111  
112 .nf
113 .ft 3
114 .in +0.3i
115 mtype a:file1 a:file2 a:file3 >unixfile
116 mtype a:file1 a:file2 a:file3 | mcopy - a:msdosfile
117 .fi
118 .in -0.3i
119 .ft R
120 .lp
121  
122 \&\fR
123 .PP
124 .SH See\ Also
125 Mtools' texinfo doc
126 .SH Viewing\ the\ texi\ doc
127 This manpage has been automatically generated from mtools's texinfo
128 documentation. However, this process is only approximative, and some
129 items, such as crossreferences, footnotes and indices are lost in this
130 translation process.  Indeed, these items have no appropriate
131 representation in the manpage format.  Moreover, not all information has
132 been translated into the manpage version.  Thus I strongly advise you to
133 use the original texinfo doc.  See the end of this manpage for
134 instructions how to view the texinfo doc.
135 .TP
136 * \ \ 
137 To generate a printable copy from the texinfo doc, run the following
138 commands:
139  
140 .nf
141 .ft 3
142 .in +0.3i
143     ./configure; make dvi; dvips mtools.dvi
144 .fi
145 .in -0.3i
146 .ft R
147 .lp
148  
149 \&\fR
150 .TP
151 * \ \ 
152 To generate a html copy,  run:
153  
154 .nf
155 .ft 3
156 .in +0.3i
157     ./configure; make html
158 .fi
159 .in -0.3i
160 .ft R
161 .lp
162  
163 \&\fRA premade html can be found at
164 \&\fR\&\f(CW\(ifhttp://www.gnu.org/software/mtools/manual/mtools.html\(is\fR
165 .TP
166 * \ \ 
167 To generate an info copy (browsable using emacs' info mode), run:
168  
169 .nf
170 .ft 3
171 .in +0.3i
172     ./configure; make info
173 .fi
174 .in -0.3i
175 .ft R
176 .lp
177  
178 \&\fR
179 .PP
180 The texinfo doc looks most pretty when printed or as html.  Indeed, in
181 the info version certain examples are difficult to read due to the
182 quoting conventions used in info.
183 .PP