version 1 showing authors affecting page license.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
mcopy |
|
|
2 |
!!!mcopy |
|
|
3 |
Name |
|
|
4 |
Note of warning |
|
|
5 |
Description |
|
|
6 |
Bugs |
|
|
7 |
See Also |
|
|
8 |
Viewing the texi doc |
|
|
9 |
---- |
|
|
10 |
!!Name |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
mcopy - copy MSDOS files to/from Unix |
|
|
14 |
!!Note of warning |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
This manpage has been automatically generated from mtools's |
|
|
18 |
texinfo documentation, and may not be entirely accurate or |
|
|
19 |
complete. See the end of this man page for |
|
|
20 |
details. |
|
|
21 |
!!Description |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
The mcopy command is used to copy MS-DOS files to |
|
|
25 |
and from Unix. It uses the following syntax: |
|
|
26 |
|
|
|
27 |
|
|
|
28 |
mcopy [[-bspanvmQT] [[-D ''clash_option''] ''sourcefile targetfile'' |
|
|
29 |
mcopy [[-bspanvmQT] [[-D ''clash_option''] ''sourcefile'' [[ ''sourcefiles''... ] ''targetdirectory'' |
|
|
30 |
mcopy [[-tnvm] ''MSDOSsourcefile'' |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
Mcopy copies the specified file to the named file, |
|
|
34 |
or copies multiple files to the named directory. The source |
|
|
35 |
and target can be either MS-DOS or Unix files. |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
The use of a drive letter designation on the MS-DOS files, |
|
|
39 |
'a:' for example, determines the direction of the transfer. |
|
|
40 |
A missing drive designation implies a Unix file whose path |
|
|
41 |
starts in the current directory. If a source drive letter is |
|
|
42 |
specified with no attached file name (e.g. mcopy a: |
|
|
43 |
.), all files are copied from that drive. |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
If only a single, MS-DOS source parameter is provided (e.g. |
|
|
47 |
.') is assumed. |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
A filename of `-' means standard input or standard |
|
|
51 |
output, depending on its position on the command |
|
|
52 |
line. |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
Mcopy accepts the following command line |
|
|
56 |
options: |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
t |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
Text file transfer. Mcopy translates incoming carriage |
|
|
63 |
return/line feeds to line feeds when copying from Dos to |
|
|
64 |
Unix, and vice-versa when copying from Unix to |
|
|
65 |
Dos. |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
b |
|
|
69 |
|
|
|
70 |
|
|
|
71 |
Batch mode. Optimized for huge recursive copies, but less |
|
|
72 |
secure if a crash happens during the copy. |
|
|
73 |
|
|
|
74 |
|
|
|
75 |
s |
|
|
76 |
|
|
|
77 |
|
|
|
78 |
Recursive copy. Also copies directories and their |
|
|
79 |
contents |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
p |
|
|
83 |
|
|
|
84 |
|
|
|
85 |
Preserves the attributes of the copied files |
|
|
86 |
|
|
|
87 |
|
|
|
88 |
Q |
|
|
89 |
|
|
|
90 |
|
|
|
91 |
When mcopying multiple files, quits as soon as one copy |
|
|
92 |
fails (for example due to lacking storage space on the |
|
|
93 |
target disk) |
|
|
94 |
|
|
|
95 |
|
|
|
96 |
a |
|
|
97 |
|
|
|
98 |
|
|
|
99 |
Text (Ascii) file transfer. Mcopy translates |
|
|
100 |
incoming carriage return/line feeds to line |
|
|
101 |
feeds. |
|
|
102 |
|
|
|
103 |
|
|
|
104 |
T |
|
|
105 |
|
|
|
106 |
|
|
|
107 |
Text (Ascii) file transfer with charset conversion. Differs |
|
|
108 |
from -a in the Mcopy also translates |
|
|
109 |
incoming PC-8 characters to ISO-8859-1 equivalents as far as |
|
|
110 |
possible. When reading DOS files, untranslatable characters |
|
|
111 |
are replaced by '#'; when writing DOS files, |
|
|
112 |
untranslatable characters are replaced by |
|
|
113 |
'.'. |
|
|
114 |
|
|
|
115 |
|
|
|
116 |
n |
|
|
117 |
|
|
|
118 |
|
|
|
119 |
No confirmation when overwriting Unix files. Mcopy |
|
|
120 |
doesn't warn the user when overwriting an existing Unix |
|
|
121 |
file. In order to switch off confirmation for DOS files, use |
|
|
122 |
-o. |
|
|
123 |
|
|
|
124 |
|
|
|
125 |
m |
|
|
126 |
|
|
|
127 |
|
|
|
128 |
Preserve the file modification time. If the target file |
|
|
129 |
already exists, and the -n option is not in effect, |
|
|
130 |
mcopy asks whether to overwrite the file or to |
|
|
131 |
rename the new file (`name clashes') for |
|
|
132 |
details). |
|
|
133 |
|
|
|
134 |
|
|
|
135 |
v |
|
|
136 |
|
|
|
137 |
|
|
|
138 |
Verbose. Displays the name of each file as it is |
|
|
139 |
copied. |
|
|
140 |
!!Bugs |
|
|
141 |
|
|
|
142 |
|
|
|
143 |
Unlike MS-DOS, the '+' operator (append) from MS-DOS is not |
|
|
144 |
supported. However, you may use mtype to produce |
|
|
145 |
the same effect: |
|
|
146 |
|
|
|
147 |
|
|
|
148 |
__ mtype a:file1 a:file2 a:file3 |
|
|
149 |
__ |
|
|
150 |
!!See Also |
|
|
151 |
|
|
|
152 |
|
|
|
153 |
Mtools' texinfo doc |
|
|
154 |
!!Viewing the texi doc |
|
|
155 |
|
|
|
156 |
|
|
|
157 |
This manpage has been automatically generated from mtools's |
|
|
158 |
texinfo documentation. However, this process is only |
|
|
159 |
approximative, and some items, such as crossreferences, |
|
|
160 |
footnotes and indices are lost in this translation process. |
|
|
161 |
Indeed, these items have no appropriate representation in |
|
|
162 |
the manpage format. Moreover, not all information has been |
|
|
163 |
translated into the manpage version. Thus I strongly advise |
|
|
164 |
you to use the original texinfo doc. See the end of this |
|
|
165 |
manpage for instructions how to view the texinfo |
|
|
166 |
doc. |
|
|
167 |
|
|
|
168 |
|
|
|
169 |
* |
|
|
170 |
|
|
|
171 |
|
|
|
172 |
To generate a printable copy from the texinfo doc, run the |
|
|
173 |
following commands: |
|
|
174 |
|
|
|
175 |
|
|
|
176 |
__ ./configure; make dvi; dvips mtools.dvi |
|
|
177 |
__ |
|
|
178 |
|
|
|
179 |
|
|
|
180 |
* |
|
|
181 |
|
|
|
182 |
|
|
|
183 |
To generate a html copy, run: |
|
|
184 |
|
|
|
185 |
|
|
|
186 |
__ ./configure; make html |
|
|
187 |
__A premade html can be found at: `http://mtools.linux.lu' and also at: `http://www.tux.org/pub/knaff/mtools' |
|
|
188 |
|
|
|
189 |
|
|
|
190 |
* |
|
|
191 |
|
|
|
192 |
|
|
|
193 |
To generate an info copy (browsable using emacs' info mode), |
|
|
194 |
run: |
|
|
195 |
|
|
|
196 |
|
|
|
197 |
__ ./configure; make info |
|
|
198 |
__ |
|
|
199 |
|
|
|
200 |
|
|
|
201 |
The texinfo doc looks most pretty when printed or as html. |
|
|
202 |
Indeed, in the info version certain examples are difficult |
|
|
203 |
to read due to the quoting conventions used in |
|
|
204 |
info. |
|
|
205 |
---- |