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

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

Syntax

ISFileUtilities.MoveFileUnique(sourceFileName, destinationFileName, [updatedDestinationFileName], [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.
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