File Operations

Previous chapterNext chapter Show allShow all    Hide allHide all

This function is used to perform a defined file operation during runtime (copying, moving and deleting).

Give the file operation and the file parameters as the transfer parameters. This function is configured via a dialog mask.

Possible file operations:

Copy

copies files from one name and path to a new name and path. Transfer parameters are considered.

Move

Moves files from one name and path to a new name and path and deletes them in source path. Transfer parameters are considered.

Delete

Delete files. Transfer parameters are considered.

If the given source cannot be found (file or path is not present or incorrect), the function will not be executed. By default, no error message is generated. You can also force an error message via the options; we do not recommend this, as this might block the runtime or the processing of other functions.

Additional options can be configured after the file operation is defined.

Parameter:

Source/Target

Enter the path to source and target. You can also use wild cards (*) for source and target. There are three ways of defining a path:

absolute (You can also use the button '...' next to the text field).

relative according to runtime directory ( Link: more about the runtime directory)

relative according to the data directory. (Link: more about the data directory).

For example:

absolute:
Source 'C:\temp\datenbank.mdb' to target 'D:\backup\' -> The file 'database.mdb'is copied to the directory 'D:\backup\'. In order for the copying to work, the target directory must already exist and it must be followed by a backslash.

relative:
relative according to the data directory: '*.aml' to target  'D:\backup\' copies all files of the alarm list to the folder 'D:\backup\'.

Rename files:
Single files can be renamed. Example: 'C:\temp\datenbank.mdb' to target 'D:\backup\backupdb.mdb' copies the file 'datenbank.mdb' to the directory 'D:\backup\' and renames it to 'backupdb.mdb'.

Renaming several files simultaneously with wild cards is not possible.

With subdirectories

Looks for files also in the subdirectories of the source path and creates that tree structure in the target directory.

Overwriting enabled

If the source file already exists in the destination directory, it will be overwritten by the new file.

Display error messages

If copying or moving file is not possible, an error message will be issued as system message We do not recommend to activate this option, as it may block the runtime or the processing of other functions.

Dialog box before execution

Before the function is executed in online operation, a dialog box is loaded, which allows to adjust parameters (file operation, source, target etc.). The modified settings remain during the runtime of the online operation. In this dialog box, the option dialog box before execution is missing.

Execute only when file is ...

File operation is executed only when time criterion was defined (days, hours).

... not younger than

The file must be older than the entered time. '1 day' always means 24 hours after execution time.

... not older than

The file must be younger than the entered time. '1 day' always means 24 hours after execution time.
Hint: 'not older than' must be bigger than 'not younger than'.