Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

This function is one of Plugins Operation.You can find the movie in ARGOS RPA+ video tutorial.






Folder Monitor

A very powerful tool EDI type automation!

  • This tool checks the contents of a folder for specific file and returns various useful values.
  • Combine File Monitor with Repeat to make a “watch dog” (trigger to start your bot).
  • Use this tool in conjunction with [File/Folder Operations].

Primary Features

  • Check the contents of a folder for specific files.
  • You can define multiple file extensions such as .xls and xlsx, or .jpg and .png, etc.
  • You can set time out for one check duration.
  • It can return many useful values such as # of files, the full file path, and file size as well as base name.



Warning
iconfalse
title<Troubleshooting Tips>

When your csv (Return Value) gives you “Undefined Variable” error, it is likely that the Folder Monitoring plugin is finding 0 results in the folder.

Please double check your folder path and the file type settings.





Tooltip
appendIconComment
iconColorBlue
width720px
linkTextText from Image

Right Text Bubble

  • Please note --- No functionality Changes!
    In preceding versions, this menu [Details in CSV] was labeled as [Is CSV out?] and was placed at the bottom of advance menu. By checking this, you will get detailed information about the folder and target files in CSV format. The CSV contains index, file-path, and file size. IF YOU LEAVE HERE UNCHECKED THEN YOU WLL JUST GET THE NUMBER OF FILES THE PLUGIN HAS FOUND.

Left Text Bubble

  • When you checked for detail CSV output, by checking here, you will get just the file name instead of the file-path (CSV header remains to be “filepath”) {{*.filepath}}



Need help?

Technical contact to tech@argos-labs.com


May you search all operations,

Suppose you have a folder like this.


Anchor
tip1
tip1

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”


Tooltip
appendIconComment
iconColorBlue
linkTextText from Image
  • Variable name: User Variable Here



Anchor
tip2
tip2

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 this.

In the format of [index, file path, file size]

Tip
iconfalse

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
iconfalse

{{Folder_C.index(#)}} {{Folder_C.filepath(#)}} {{Folder_C.filesize(#)}} 

Where # should be the row # of CSV.

More information in Benny’s Secret Functions.



Tooltip
appendIconComment
iconColorBlue
width540px
linkTextText from Image
  • Details in CSV: Make sure to check this parameter
  • Group name: Plugin Variable here (the group portion)



You can use two File Monitor consecutively to get # of files and file data.


Tooltip
appendIconComment
iconColorBlue
width720px
linkTextText from Image
  • Consecutive File Monitor operation to get # and details of the target file could be powerful tool in EDI type automation. See also File/Folder Operations



Anchor
tip3
tip3


Usage 3

How to build a simple but reliable watch dog trigger for your bot.

  • Simple “watch dog” automation





  • General Parameter Settings


Tooltip
appendIconComment
iconColorBlue
width720px
linkTextText from Image

Right Text Bubble

  • No need for screenshot
  • Folders to monitor: Specify (or lookup) the path to your target folder
    C:\Users\sato3\Desktop\Customer Demo Folder\Folder C
  • Search for: Specify file name or extension to look for. You can set multiple targets. Using wildcard (*) is OK too.

Left Text Bubble

  • Result Value:
    Default Return Value is # of files found. For the example folder a [2] will be returned as there are two .docx files in the folder.
    • String - You must predefine User Variable
    • CSV - Group name becomes the first part of your variable. Second part is uppercase character starting with A
    • File - This creates .txt or .csv. File does not need to be present. User variable can be saved too.





  • Advanced settings enable extracting more file details.


Tooltip
appendIconComment
iconColorBlue
width540px
linkTextText from Image

Right Text Bubble

  • Timeout: Set timeout in seconds

Left Text Bubble

  • Inc subfolders: You can set to check subfolders too
  • Details in CSV: Checking this will yield more information including index, filepath, filesize (csv column headers)