The OverwriteDialog method displays a file overwrite confirmation dialog box.
OverwriteDialog(file1, file2, buttons)
Required. File that is to be overwritten by the second file. For more information, see the following Remarks section.
Required. File that is to overwrite the first file. For more information, see the following Remarks section.
Required. Number specifying the type of buttons to display.
| Constant | Description |
| 4 | Display Yes, All, Skip, Skip All and Cancel buttons. |
| 5 | Display Yes, No and Cancel buttons. |
| Value | Description |
| 2 | Cancel |
| 6 | Yes |
| 7 | No |
| 16 | Skip |
| 17 | Skip All |
| 18 | All |
The file parameters can be either File objects obtained from the FileSystemObject or Sally panel Item objects. If you can retrieve neither of these object types, you can use a multiline string instead. The first line of the text should specify the full file path. The second line should specify additional information such as the file size and the date and time when the file was last modified. The lines of text should be separated with the new line (CR) character.