File Action
The activity allows you to perform basic operations on the document: Copy, Move, Rename, Delete, Make directory.
Depending on the selected action to be performed, appropriate text fields to be filled in will appear in the activity window:
-
- when copying and moving documents, fill in the Source and Destination fields with the full path (e.g. Source: C:\Kvasir\The-Art-of-War.pdf; Destination: C:\Users\[user_name]\Desktop\The-Art-of-War.pdf); tick the box to choose overwriting existing file when needed; when folder pointed in Destination does not exist – Wizlink creates it; you can use wildcards in Source textbox (so to move all files to another folder you have to write C:\[directory_tree]\*.*);
- when renaming documents, fill in the Path and New name fields (e.g. Path: C:\Kvasir\The-Art-of-War.pdf; New name: TheArtofWar.pdf);
- when deleting documents, fill in the Path field (e.g. C:\Kvasir\TheArtofWar.pdf); you can use wildcards in Path textbox (e.g. C:\Kvasir\*.pdf deletes all PDF files from Kvasir folder);
- when creating folder, fill in the Path field with the address followed by the name of the directory you want to create (e.g. C:\Mimir).
Acquired Text | String | Output | text input by user |
---|---|---|---|
Action | Dropdown | Input | select action to perform from the dropdown list |
Alternative Scenario If Failed | Boolean | Input | checkbox; default is "on" |
Destination | String | Input | directory path to a file (file name and extension included) |
Display Name | Literal | Input | changes display name of the activity |
Exclude from Transaction Check | Boolean | Input | checkbox; default is "off" |
New Name | String | Input | new name of the file, localization is in File Path (used in: rename) |
Overwrite Existing File | Boolean | Input | checkbox; default is "off" |
Path | String | Input | directory path to a folder |
Source | String | Input | directory path to a file (file name and extension included) |
Result | Boolean | Output | returns a Boolean value. True if no error in activity, otherwise will return False |
Result Code | Int32 | Output | Result Code will return 0 if there is no error in activity, otherwise in most cases will return 1. See the table of Extended Result Codes for more info |