Page 1 of 1

Folder Monitor & File Contents Checker

Posted: Fri Nov 22, 2019 7:18 am
by mh348
Hi Oleg, Are there any plans to File contents reader so I can save as variables?

I'm busy researching ways to auto sort files into folders based on the file names and also file contents where possible. Example: Monitor the downloads folder for files containing the word "Payment_Notification" with extensions "pdf", I then want to have the file moved into a Payments folder, append the date of the transaction and the Payee or Recipient name to the file name, then create a folder based on the payment month.

1. Will I be able to use the current "File Monitor"?
2. How do I extract file contents from a PDF, txt, xlsx etc ?

I've found another application that can do this, but would rather stick to using RT. Any ideas on how to implement this?

Re: Folder Monitor & File Contents Checker

Posted: Fri Nov 22, 2019 11:40 am
by Oleg
Are there any plans to File contents reader so I can save as variables?
You can read text files directly
look at Read text file action
system variables: TextFile(file_name), TextFileANSI(file_name), TextFileUTF8(file_name), TextFileUNICODE(file_name)

also some other actions can read text file directly
1. Will I be able to use the current "File Monitor"?
File monitor doesn't read the content. It monitors files by size, date-time and attributes of file.
2. How do I extract file contents from a PDF, txt, xlsx etc ?
You can read text files directly.
For EXCEL files look at the Excel actions
For PDF files you have to use some external utilities