Click or drag to resize

FileInfoCopyTo Method

Overload List
  NameDescription
Public methodCopyTo(String)
Copies an existing file to a new file, disallowing the overwriting of an existing file.

Return Value

Type: 
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.

Public methodCopyTo(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.

Public methodCopyTo(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.

Public methodCopyTo(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.

Public methodCopyTo(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.

Public methodCopyTo(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.

Public methodCopyTo(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.

Public methodCopyTo(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.

Public methodCopyTo(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.

Public methodCopyTo(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.

Public methodCopyTo(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.

Public methodCopyTo(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.

Top
See Also