Working with {Tags}
All actions support {tags}. These are special "placeholders" that are dynamically replaced by real values when File Viking executes your actions.
Example
For the Copy Files action, you could specify the Target Folder as...
C:\Temp\TargetDirectory\{yyyy}\{mm}\{dd}
When the action executes, the {tags} will be replaced by real values representing the current date. New directories are automatically created.
There are two types of tags: those that prompt you for a value; and those that are automatically "filled in" by File Viking.
Tags that prompt you for a value
When a Basket performs an Action containing one or more tags that need a value, File Viking prompts you with this window.
| {Tag} | Prompts for / Example |
|---|---|
| {ask:Prompt Text} | Enter free text. Previously entered values are saved for easy re-use.C:\AllClients\{ask:What client ar you working on}
|
| {file:Prompt Text} | A file's complete path. You can use a browse button to select the file.{file:Select the log file}
|
| {folder:Prompt Text} {folder:Root Folder:Prompt Text} |
A folder's complete path. You can use a browse button to select the folder.
Optionally you can set the root folder to use so the Folder Dialog will open in that folder.{folder:Select the log directory}
{folder:C:\Clients:Select a Client directory}
|
| {subfoldername:Root Folder:Prompt Text} | The name of a sub folder, without its path.F:\Output\{subfoldername:C:\All Clients:Select a Client}
|
Tags that are automatically filled in
These tags are all date- and time-related.
| {Tag} | Description | Example |
|---|---|---|
| {yyyy} | The current year, including century. | C:\Data\{yyyy}\{mm}\{dd}
|
| {yy} | The current year, without the century. | C:\Data\{yy}\{mm}\{dd}
|
| {mm} | The current month, 01 - 12. | C:\Data\{yy}\{mm}\{dd}
|
| {dd} | The day of month, 01-31. | C:\Data\{yy}\{monthname}\{dd}
|
| {monthname} | The current month name, for example March. | C:\Data\{yy}\{monthname}
|
| {monthabbr} | The current month name, abbreviated, for example Mar. | C:\Data\{yy}\{monthabbr}
|
| {dayofweekname} | Full weekday name, for example Monday. | C:\Data\{dayofweekname}
|
| {dayofweekabbr} | Short weekday name, for example Mon. | C:\Data\{dayofweekabbr}
|
| {dayofweek} | Weekday as a number (0 - 6, Sunday is 0) | C:\Data\{dayofweek}
|
| {week} | The week of this year, using Monday as the first day of week. | C:\Data\{yy}\{week}
|
| {weeksunday} | The week of this year, using Sunday as the first day of week. | C:\Data\{yy}\{weeksunday}
|
| {hour} | The current hour, 00 - 23. | C:\Data\{yy}{mm}{dd}\{hour}
|
| {hour12} | The current hour, 01 - 12. | C:\Data\{yy}{mm}{dd}\{hour12}
|
| {ampm} | AM/PM indicator | C:\Data\{yy}{mm}{dd}\{hour12}{ampm}
|
| {min} | The current minutes, 00 - 59. | C:\Data\{hour}{min}{sec}
|
| {sec} | The current seconds, 00 - 59. | C:\Data\{hour}{min}{sec}
|