[go: up one dir, main page]

Menu

[267579]: / man / en_US / copy.tea  Maximize  Restore  History

Download this file

78 lines (57 with data), 2.9 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#
# Dos9 Manual pages, The Dos9 project
# Copyright (C) 2012-2015 Romain Garbi (DarkBatcher)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
{{COPY command}}
Copy one or several files to another location.
{{Synopsis}}
${COPY [/-Y | /Y] [/R] [/A[:]attributes] source [+] [...] destination}
Copy one or several files to another location.
- {/-Y} : Prompt the user for confirmation.
- {/Y} : Do not prompt the user for confirmation.
- {source} : The path of files to be copied (can include
{spec/regexp|regular expressions}). By using the {+} sign between
at least two paths, the behaviour of {COPY} will be affected as
follows: instead of trying to copy {source} into {destination},
the files referred to by {source} will be concatenated in {destination}.
- {destination} : The path of the new files to be created (can not
include {spec/regexp|regular expression}).
@- {destination} is considered to be the path of the destination files,
unless,
-- {destination} refers to a folder;
-- {destination} ends with {/} or {\\};
@- In any of the previous cases, {destination} is considered to be the
folder where files referred to by {source} must be copied. Thus files
resulting from copy will keep their original names. If neither of
these conditions are met nor is the {/R} mode set, and {source} refers
to multiple files, then the files will be concatenated inside {destination}.
- {/R} : Turn on recursive mode. This mode allow copying a complete
tree. If {sources} refers to various tree, then the tree will be merged
in the {destination} folder. If {source} is a {spec/regexp|regular
expression}, then the static part of the regular expression will be
removed from files absolute path to produce relative path in
{destination} folder.
@- As an example, if {source} is {path/to/folder/*.*} then the file
{path/to/folder/my/file} will be copied to {destination}/{my/file}.
- {/A[:]attributes} : Copies only files that match {attributes}. For
more details, check {spec/attr|files attributes}.
{{Compatibility}}
Available since version {0.4}.
Partially compatible with {cmd.exe}. Some {cmd.exe} are ignored
because they do not make sense anymore. The {/A} switch is a
{dos9|Dos9} extension.
{{See also}}
{del|DEL and ERASE commands}, {move|MOVE command}