Copy file or folder
copyfile('source','destination')
copyfile('source','destination','
f
')
status = copyfile(___)
[status,message] = copyfile(___)
[status,message,messageid] = copyfile(___)
copyfile('source','destination')
copies
the file or folder named source
to the file or
folder destination
. The values for source
and destination
are
specified as character vectors. Use full path names or path names
relative to the current folder. To copy multiple files or folders,
use one or more wildcard characters (*
) after the
last file separator in source
. You cannot use a
wildcard character in destination
.
copyfile('
copies source','destination','
f
')source
to destination
,
even when destination
is not writable. The state
of the read-write attribute for destination
does
not change. You can use f
with any syntax for copyfile
.
status = copyfile(___)
reports
the outcome as a logical scalar, status
. The value
is 1
for success and 0
for failure.
[status,message] = copyfile(___)
returns
any warning or error message as a character vector to message
.
When copyfile
succeeds, message
is
empty.
[status,message,messageid] = copyfile(___)
returns
any warning or error identifier as a character vector to messageId
.
When copyfile
succeeds, messageId
is
empty.
cd
| delete
| dir
| fileattrib
| filebrowser
| fileparts
| mkdir
| movefile
| rmdir