Announcement

Announcement Module
Collapse
No announcement yet.

poll a file on a remote FTP server and then transfer it

Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • poll a file on a remote FTP server and then transfer it

    I have a customer who will put a text file many times a day in a pc directory.
    I need to open an FTP connection to this PC server (no problem).
    I need to poll the directory every few seconds check to see if the file exists ( can't ask the customer to do more than put the file in a directory) and then execute an RPG program to input the data in the file and continue polling the directory to look for the next file.

    The file will always have the same name.
    I don't want to open and close the FTP connection every few seconds.
    How can I open the FTP connection and poll the directory every few seconds?

  • #2
    Look at Scott Klement's FTPAPI http://www.scottklement.com/ftpapi/

    You should be able to use this to do what you want.

    Comment

    Working...
    X