FTP downlaod delay

Discuss RoboTask here
Post Reply
stevefromdodge
Posts: 30
Joined: Tue Apr 05, 2011 3:39 pm

FTP downlaod delay

Post by stevefromdodge »

We are using RoboTask to download files from a vendor via FTP. We are getting occasional corrupt files, because we are downloading the file before it is complete. The vendor is asking us to place a delay in our downloading task.

What's the best way to download all files in a directory that are older than 5 minutes?
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: FTP downlaod delay

Post by Oleg »

Look at my example below:

Code: Select all

 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|2099193306
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task699"
Hide=INTEGER|0
ID=INTEGER|711012147
LogOnAsUser=INTEGER|1
Name=STRING|"Create local variable ""FILENAME"" with value """"..."
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER

[Actions\Action1]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create local variable ""FILENAME"" with value """""
Params=FOLDER

[Actions\Action1\Params]
expand=STRING|"0"
varkind=STRING|"1"
varname=STRING|"FILENAME"

[Actions\Action2]
ActionID=STRING|"A_SSLFTP_LOGON"
Enabled=INTEGER|-1
Name=STRING|"SSL FTP Log On"
Params=FOLDER

[Actions\Action2\Params]
anonymous=STRING|"1"
host=STRING|"localhost"
passive=STRING|"1"
password=STRING|"42310383162884337286400984055142142"
port=STRING|"21"
proxypassword=STRING|"2616925200249402545615982"
proxytype=STRING|"3"
tlsmode=STRING|"0"
useproxy=STRING|"0"
username=STRING|"anonymous"
usessl2=STRING|"0"
usessl3=STRING|"0"
usestls=STRING|"1"

[Actions\Action3]
ActionID=STRING|"A_SSLFTP_FILELOOP"
Enabled=INTEGER|-1
Name=STRING|"SSL FTP File Loop"
Params=FOLDER

[Actions\Action3\Params]
createmode=STRING|"9"
createormodified=STRING|"1"
date1=STRING|"18991230"
date2=STRING|"18991230"
DuringDays=STRING|"1"
DuringHours=STRING|"1"
DuringMinutes=STRING|"1"
DuringMonths=STRING|"1"
filenameonly=STRING|"0"
folder=STRING|"/incoming"
kind=STRING|"0"
OlderDays=STRING|"1"
OlderHours=STRING|"1"
OlderMinutes=STRING|"10"
OlderMonths=STRING|"1"
sizesave=STRING|"0"
sort=STRING|"0"
sortby=STRING|"0"
sortorder=STRING|"0"
subfolders=STRING|"0"
timesave=STRING|"0"
varname=STRING|"FILENAME"

[Actions\Action4]
ActionID=STRING|"A_SSLFTP_DOWNLOAD"
Enabled=INTEGER|-1
Name=STRING|"SSL FTP Download"
Params=FOLDER

[Actions\Action4\Params]
file=STRING|"{filename}"
folder=STRING|"c:\ftpfiles"
ifexists=STRING|"0"

[Actions\Action5]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
You can download files in the loop. FTP File Loop have date (Date-Time) filter
See on the screenshot:
FTPDateFilter.png
FTPDateFilter.png (48.02 KiB) Viewed 9007 times
SSL FTP and sFTP File Loop have same filter.
Oleg Yershov
Post Reply