PAK Commands – Choose File/Directory
Table of Contents
Both commands let the user choose from the local file system,
ChooseFile is used to look for files,
ChooseDirectory for directories respectively.
|Both commands can only be used inside the Workflow Executor|
Figure 1. The Command
Due to simplicity, the
title input parameter will be left empty for the examples. By default, it is set to “Choose a file” and “Choose a directory”.
2.1. Choose File
Example 1. Command run no inputs
The selected file will be written under the key
"C:\\Users\\user\\Downloads\\Workflow Executor Setup (7).exe" in this case.
Sometimes however, you might want to restrict the file types that are shown to the user, this can be done by providing the
fileType parameter. If we for example only want to allow gifs, we can set
Example 2. Command run with restricted file types