Icon

Open File or Folder

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
Create flow variables using base-name
Creates flow variables using the given variable base_name. %%00010_loc - just the local filename (with no path information)%%00010_path - a Path variable to file with path location%%00010- a String variable to the file with path location%%00010_url - a URL variable to the file with path location%%00010If the value is blank, the default name of loc:xxx: will be used%%00010%%00010

Input Ports

This node has no input ports

Output Ports

This node has no output ports

Nodes

Extensions

Links