Copies an existing file to a new file.
Copies an existing file to a new file, disallowing the overwriting of an existing file.
[Visual Basic] Overloads Public Function CopyTo(String) As File
[C#] public File CopyTo(String);
[C++] public: File* CopyTo(String*);
[JScript] public function CopyTo(String) : File;
Copies an existing file to a new file, allowing the overwriting of an existing file.
[Visual Basic] Overloads Public Function CopyTo(String, Boolean) As File
[C#] public File CopyTo(String, bool);
[C++] public: File* CopyTo(String*, bool);
[JScript] public function CopyTo(String, Boolean) : File;
NGWS Runtime Security:
FileIOPermissionAccess | Read permission required for the source file. |
FileIOPermissionAccess | Write permission required for the destination file. |