Get System Folder Path
Verb: getSpecialFolder
Available from: <Standard>
Gets the path to a selected system folder.
Syntax
getSpecialFolder --folder(Nullable<SpecialFolderWrapper>) (String)=value
Inputs
| Script | Designer | Required | AcceptedTypes | Description |
|---|---|---|---|---|
| --folder | Folder | Required | SpecialFolderWrapper | Option to select the system folder of which the path should be gotten. The following options are available:
|
Outputs
| Script | Designer | AcceptedTypes | Description |
|---|---|---|---|
| value | Path | Text | Path to the selected folder. |
Example
Gets the path to the desktop of the machine where the command is running.
defVar --name path --type String
getSpecialFolder --folder "Desktop" path=value
// Display in console the path to the Desktop.
logMessage --message "${path}" --type "Info"