File Confirmation

The File Confirmation command can be used when the script is going to overwrite an existing file. This command shows a form with information about the existing and new file and waits for user actions.

Existing File
Specify the name of an existing file. If there is no such file, the script will terminate with an error.

New File Information
Specify the size and modification time of the new file, separated by comma.

134567,2020-11-17 15:13:25
2#fi.size#,#fi.time#

Result Variable
Specify the name of the object variable to get information from the user. This variable will be assigned an object with the following fields:

  • all - equals true, if the selected action should be applied to all files. Otherwise, it is false.
  • btn - the selected action. Can be one of the following values:
    • overwrite - replace the file.
    • skip - skip the file.

Optional Parameters

Hide Apply to All
The confirmation form has a checkbox Apply the action to all files. If hideapply is true, then this checkbox will not be shown. Otherwise, it will be displayed. By default, hideapply is true and the checkbox is hidden.

1hideapply: false
Online Demo
Downloads Documentation Scripts
English
Русский