Folder Monitor & File Contents Checker

Discuss RoboTask here
Post Reply
mh348
Posts: 3
Joined: Fri Aug 02, 2019 4:14 pm

Folder Monitor & File Contents Checker

Post 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?
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Folder Monitor & File Contents Checker

Post 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
Oleg Yershov
Post Reply