Page 1 of 1

Need help with tasks

Posted: Sun Feb 20, 2011 8:03 pm
by georgeslb
Hello,

I really need help.

I need to schedule a file transfer every minute form my hard disk to my site.

I created a task wich is updating every 1 minute. In the list 'what to do', i chosse 'Execute Script' then in the blank text I write
RushApp.FTP.Transfer(0, '', 'd:', 'tempm.htm', 'FTP1', 'Parent Directory', 'tempm1.htm', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0);

My objectif is to schedule a transfer every 1 minute from my hard (D:) to my Web.

Can you please help me

Exuse me for my english (I'm french).

Thank you

Re: Need help with tasks

Posted: Thu Feb 24, 2011 3:05 am
by FTP
You had better have a look on the help manual, it explains with "RushApp.FTP.Transfer" with a few examples, OK, for your requirement, you just need to write the task as following:

Code: Select all

RushApp.FTP.Transfer(0, '', 'd:\', 'tempm.htm.', 'FTP1', '/', 'tempm1.htm', RS_UP or RS_FILE or RS_DIRDES or RS_DIRSRC or RS_LOGOUT, '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0);