Copy a File ensuring that the Destination File Name is unique in the folder.

This will prevent the copy from failing due to a file with the same name already existing in the destination folder.

Syntax

ISFileUtilities.CopyFileUnique(sourceFileName, destinationFileName, [updatedDestinationFileName], [copyExclusive], [separatorCharacter])

Parameters

NameTypeOptionalByRefDescription
sourceFileName String The name of the Source File.
destinationFileName String The name of the Destination File.
updatedDestinationFileName String Optional ByRef If the Destination File Name has been updated to be unique, the new File Name.
copyExclusive Boolean Optional Indicates whether to check that the File is not currently open. If omitted, a value of True is assumed.
separatorCharacter String Optional The character to use to separate the File Name from the sequence. The default is an underscore. If omitted, a value of _ is assumed.

Return Value

Boolean

A Boolean value indicating success.

Member of:
ISFileUtilities
Namespace:
Intersoft.ISRuntime6
Assembly:
ISRuntime6, Version=6.0.3
Target Framework:
.NET 9.0