File Operations |
Manual -> Functions -> System functions -> Windows - Functions -> File Operations |
Show all Hide 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
' 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:
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. |