FileInfoCopyTo Method |
Name | Description | |
---|---|---|
CopyTo(String) | Copies an existing file to a new file, disallowing the overwriting of an existing file.
Return ValueType:A new FileInfo instance with a fully qualified path. Remarks Use this method to prevent overwriting of an existing file by default. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two files have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
CopyTo(String, CopyOptions) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified.
Remarks Option NoBuffering is recommended for very large file transfers. Use this method to allow or prevent overwriting of an existing file. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two files have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
CopyTo(String, PathFormat) | [AlphaFS] Copies an existing file to a new file, disallowing the overwriting of an existing file.
Remarks Use this method to prevent overwriting of an existing file by default. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two files have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
CopyTo(String, Boolean) | Copies an existing file to a new file, allowing the overwriting of an existing file.
Remarks Use this method to allow or prevent overwriting of an existing file. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two files have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
CopyTo(String, CopyOptions, PathFormat) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified.
Remarks Option NoBuffering is recommended for very large file transfers. Use this method to allow or prevent overwriting of an existing file. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two files have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
CopyTo(String, CopyOptions, Boolean) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified.
Remarks Option NoBuffering is recommended for very large file transfers. Use this method to allow or prevent overwriting of an existing file. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two files have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
CopyTo(String, Boolean, PathFormat) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file.
Remarks Use this method to allow or prevent overwriting of an existing file. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two files have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
CopyTo(String, CopyOptions, CopyMoveProgressRoutine, Object) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified.
and the possibility of notifying the application of its progress through a callback function. Remarks Option NoBuffering is recommended for very large file transfers. Use this method to allow or prevent overwriting of an existing file. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two files have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
CopyTo(String, CopyOptions, Boolean, PathFormat) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified.
Remarks Option NoBuffering is recommended for very large file transfers. Use this method to allow or prevent overwriting of an existing file. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two files have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
CopyTo(String, CopyOptions, CopyMoveProgressRoutine, Object, PathFormat) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified.
Remarks Option NoBuffering is recommended for very large file transfers. Use this method to allow or prevent overwriting of an existing file. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two files have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
CopyTo(String, CopyOptions, Boolean, CopyMoveProgressRoutine, Object) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified.
and the possibility of notifying the application of its progress through a callback function. Remarks Option NoBuffering is recommended for very large file transfers. Use this method to allow or prevent overwriting of an existing file. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two files have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
CopyTo(String, CopyOptions, Boolean, CopyMoveProgressRoutine, Object, PathFormat) | [AlphaFS] Copies an existing file to a new file, allowing the overwriting of an existing file, CopyOptions can be specified.
and the possibility of notifying the application of its progress through a callback function. Remarks Option NoBuffering is recommended for very large file transfers. Use this method to allow or prevent overwriting of an existing file. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two files have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. |