Folder Monitor & File Contents Checker

Discuss RoboTask here

Folder Monitor & File Contents Checker

Postby mh348 » Fri Nov 22, 2019 7:18 am

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?
mh348
 
Posts: 3
Joined: Fri Aug 02, 2019 4:14 pm

Re: Folder Monitor & File Contents Checker

Postby Oleg » Fri Nov 22, 2019 11:40 am

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


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 12 guests

cron