GetUniqueFileName(Path, FileName)
Checks if the specified file exists.
Return value
If the file exists, this method returns the name of the file.
If the file does not exist, this method returns the next valid name for the file.
Parameters
- Path. Specifies the file path.
- Filename. Specifies the file name.
Examples
var NewName;
NewName = MsgHandler.GetUniqueFileName(libdir, AttItem.Name);
AttItem.SaveAs(NewName, libdir);