Suppose you have a folder like this.
Anchor | ||||
---|---|---|---|---|
|
Usage 1
Below settings translate to: Find how many .docx file s are in the folder C:\Users\sato3\Desktop\Customer Demo Folder\Folder C
(example above and store the result in the User Variable {{Group.Var01}}
{{Group.Var01}} will hold “2”
Anchor | ||||
---|---|---|---|---|
|
Usage 2
Below settings translate to: Check the folder C:\Users\sato3\Desktop\Customer Demo Folder\Folder C and store the details of all the .docx file such as file paths and file sizes.
The resulted CSV will look like below with headers --- [index, filepath, filesize]
Tip | ||
---|---|---|
| ||
1, C:\Users\sato3\Desktop\Customer Demo Folder\Folder C\sample word 01.docx, 66267 2, C:\Users\sato3\Desktop\Customer Demo Folder\Folder C\sample word 02.docx, 1596454 |
When using the data, you must specify like below. (in this case the group name is: Folder_C)
Tip | ||
---|---|---|
| ||
{{Folder_C.index(#)}} {{Folder_C.filepath(#)}} {{Folder_C.filesize(#)}} Where # should be the row # of CSV. |
More information in Benny's Secret Functions.
You can use two File Monitor consecutively to get # of files and file data.
Anchor | ||||
---|---|---|---|---|
|
Usage 3
- Simple “watch dog” automation
- General Parameter Settings
- Advanced settings enable extracting more file details.