GetFolderPath - 脚本函数
GetFolderPath 函数用于返回
备注: 在标准模式下不支持此函数。请参阅文件系统访问限制
Syntax:
GetFolderPath(foldername)
Arguments:
参数 | 说明 |
---|---|
foldername |
文件夹名称不得包含任何空格。应从文件夹名称移除在 示例: MyMusic MyDocuments |
Examples and results:
本示例的目的是获取以下
LOAD
GetFolderPath('MyMusic') as MyMusic,
GetFolderPath('MyPictures') as MyPictures,
GetFolderPath('Windows') as Windows
AutoGenerate 1;
重新加载应用程序后,已将字段 MyMusic、MyPictures 和 Windows 添加到数据模型。每个字段均包含在输入中定义的文件夹路径。例如:
- C:\Users\smu\Music for the folder MyMusic
- C:\Users\smu\Pictures for the folder MyPictures
- C:\Windows for the folder Windows