选择文件夹
动词:selectFolder
可从以下位置获取: <Standard>
使用 Windows 文件夹选择窗口来选择文件夹,然后返回选定文件夹的路径。
语法
selectFolder --text(String) (String)=value
输入
| 脚本 | 设计器 | 必需的 | AcceptedTypes | Description |
|---|---|---|---|---|
| -- 文本 | 文本 | 必需的 | 文本 | 应显示在 Windows 文件夹选择窗口中的文本。 |
输出
| 脚本 | 设计器 | AcceptedTypes | Description |
|---|---|---|---|
| 值 | 路径 | 文本 | 选定的文件夹的路径。 |
示例
使用选择文件夹命令选择计算机上的文件夹,并获取选定文件夹的路径。
defVar --name folderPath --type String
selectFolder --text "Folder Selection" folderPath=value
logMessage --message "${folderPath}" --type "Info"