Icon

Open File or Folder (Branch Safe)

If executed, attempts to open the current Workflow folder, Workflow data folder, or the specified file/folder in Explorer (or equivalent) or the associated application.

Only tested with Windows 10 but it may work with other OS, as it uses Java.awt.desktop and does not directly call Windows Explorer or other operating system specific functions.

The location specified should be a valid absolute file/folder path if the location type is specified as "Absolute".

Note that the path handling is performed outside of the KNIME software and so it is not possible to use knime:// protocol paths here.

If the location type is either Workflow Folder, or Workflow Data Folder, then the location should point to a valid subfolder or file relative to the specified Workflow Folder/Data Folder.


12 May 2021 @takbb Brian Bates
Documentation updated 16/7/2021

Options

Physically open location or execute file
If selected/checked it will attempt to open the workflow folder when executed. If the location represents a file, it will cause that file to be opened in its associated external application, or executed if it is an executable file (use with caution for executables!)%%00010%%00010If unchecked, it will take no action other than to create flow variables (and create folder if that option has been chosen)%%00010%%00010Disabling allows you to leave it on the workflow and not have it open the folder/execute file every time the node is executed.
Create Workflow Data Folder ( if it doesn't exist)
Creates workflow data folder if it does not currently exist
Location type
Enter the type of location, to indicate if this represents a folder in the current workflow or an Absolute path
Location/File to open
A string representing the folder (or a file) to be opened on execution.%%00010%%00010Leave blank to open the workflow folder

Input Ports

This node has no input ports

Output Ports

This node has no output ports

Nodes

Extensions

Links