OverwriteDialog Method

The OverwriteDialog method displays file overwrite confirmation dialog box.

Syntax

OverwriteDialog(file1, file2, buttons)

Parameters

file1

Required. File that is supposed to be overwritten with the second file. For more information see the following Remarks section.

file2

Required. File that is supposed to overwrite the first file. For more information see the following Remarks section.

buttons

Required. Number specifying the type of buttons to display.

ConstantDescription
4Display Yes, All, Skip, Skip All and Cancel buttons.
5Display Yes, No and Cancel buttons.

Return Values

ValueDescription
2Cancel
6Yes
7No
16Skip
17Skip All
18All

Remarks

The file parameters can be either the File objects obtained from the FileSystemObject or the Salamander panel Item objects. If you can retrieve neither of these object types you can use multiline string in place of these parameters. The first line of the text should specify the full file path. The second line should specify additional information like file size and date and time when the file was last modified. The lines of text should be separated with the new line (CR) character.

See Also

Item Object

Salamander Object