I just downloaded the trial version.
what are the ftp commands available to use? i have tried everything, even the bin command and still get a FtpCommand fails with message: 500 'BIN': command not understood,
FTP COMMAND
FTP COMMAND
You can use only remote commands in "FTP Command" action.
To learn more run program ftp.exe and type "remotehelp" command
For example, "BINARY" command conforms to "TYPE I"
All FTP commands is described at RFC595 and related documents
To learn more run program ftp.exe and type "remotehelp" command
For example, "BINARY" command conforms to "TYPE I"
All FTP commands is described at RFC595 and related documents
Last edited by Oleg on Thu Oct 28, 2004 3:34 am, edited 1 time in total.
FTP COMMAND
So how can i perform a MGET * to download all the files in a given directory?
FTP COMMAND
For this purpose there are other FTP actions.
Use FTP File Loop together with FTP Download. See example below. In order to import this task into RoboTask save text of the task to file and use menu command "Task | Import".
;**** Begin of Task
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1664541561
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task179"
Hide=INTEGER|0
ID=INTEGER|1710315732
Name=STRING|"Download from FTP demo"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
[Actions\Action1]
ActionID=STRING|"A_FTP_LOGON"
Enabled=INTEGER|-1
Name=STRING|"FTP Log On"
Params=FOLDER
[Actions\Action1\Params]
anonymous=STRING|"1"
host=STRING|"localhost"
passive=STRING|"0"
password=STRING|"42310383162884337286400984055142142"
port=STRING|"21"
username=STRING|"anonymous"
[Actions\Action2]
ActionID=STRING|"A_FTP_TRANSFERTYPE"
Enabled=INTEGER|-1
Name=STRING|"FTP Transfer Type"
Params=FOLDER
[Actions\Action2\Params]
binary=STRING|"1"
[Actions\Action3]
ActionID=STRING|"A_FTP_FILELOOP"
Enabled=INTEGER|-1
Name=STRING|"FTP File Loop"
Params=FOLDER
[Actions\Action3\Params]
filenameonly=STRING|"0"
folder=STRING|"/myweb/*.*"
sizesave=STRING|"0"
subfolders=STRING|"0"
timesave=STRING|"0"
varname=STRING|"FTPFILE"
[Actions\Action4]
ActionID=STRING|"A_FTP_DOWNLOAD"
Enabled=INTEGER|-1
Name=STRING|"FTP Download"
Params=FOLDER
[Actions\Action4\Params]
file=STRING|"{FTPfile}"
folder=STRING|"C:\ftpfiles"
[Actions\Action5]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
[Actions\Action6]
ActionID=STRING|"A_FTP_LOGOFF"
Enabled=INTEGER|-1
Name=STRING|"FTP Log Off"
;**** End of Task
Use FTP File Loop together with FTP Download. See example below. In order to import this task into RoboTask save text of the task to file and use menu command "Task | Import".
;**** Begin of Task
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1664541561
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task179"
Hide=INTEGER|0
ID=INTEGER|1710315732
Name=STRING|"Download from FTP demo"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
[Actions\Action1]
ActionID=STRING|"A_FTP_LOGON"
Enabled=INTEGER|-1
Name=STRING|"FTP Log On"
Params=FOLDER
[Actions\Action1\Params]
anonymous=STRING|"1"
host=STRING|"localhost"
passive=STRING|"0"
password=STRING|"42310383162884337286400984055142142"
port=STRING|"21"
username=STRING|"anonymous"
[Actions\Action2]
ActionID=STRING|"A_FTP_TRANSFERTYPE"
Enabled=INTEGER|-1
Name=STRING|"FTP Transfer Type"
Params=FOLDER
[Actions\Action2\Params]
binary=STRING|"1"
[Actions\Action3]
ActionID=STRING|"A_FTP_FILELOOP"
Enabled=INTEGER|-1
Name=STRING|"FTP File Loop"
Params=FOLDER
[Actions\Action3\Params]
filenameonly=STRING|"0"
folder=STRING|"/myweb/*.*"
sizesave=STRING|"0"
subfolders=STRING|"0"
timesave=STRING|"0"
varname=STRING|"FTPFILE"
[Actions\Action4]
ActionID=STRING|"A_FTP_DOWNLOAD"
Enabled=INTEGER|-1
Name=STRING|"FTP Download"
Params=FOLDER
[Actions\Action4\Params]
file=STRING|"{FTPfile}"
folder=STRING|"C:\ftpfiles"
[Actions\Action5]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
[Actions\Action6]
ActionID=STRING|"A_FTP_LOGOFF"
Enabled=INTEGER|-1
Name=STRING|"FTP Log Off"
;**** End of Task
FTP COMMAND
Thanks, works perfect.