ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Post here if you experience file transfer problems or unexpected errors.
I'm just trying out this program today, it looks to be just what I need but I'm having a problem.
I have modified a basic script to collect all files from two directories
I know the files are there as my FTP client can see them ETC.

I have tried the passive enable and disable.
I have set VERBOSE on and I can log on, here is the result.
VERBOSE(ON)
Verbose mode enabled

OPENHOST("10.0.0.120","test",******)
Connecting to 10.0.0.120
Resolving host name "10.0.0.120"
Connecting to 10.0.0.120 Port: 21
Connected to 10.0.0.120.
220 Service ready
USER test
230 User logged in
SYST
500 Unknown cmd SYST
FEAT
500 Unknown cmd FEAT
TYPE I
200 Command OK
REST 0
500 Unsupported command
PWD
257 "/"
Connected.
Checking if MLSD works in this serverPASV
227 Entering Passive Mode (10,0,0,120,192,33)
Opening data connection to 10.0.0.120 Port: 49185
LIST
125 Data connection already open;transfer starting.
141 bytes transferred. (8.60 KB/s) (16 ms)
226 Transfer OK, Closing connection

LOCALCHDIR("C:\MyDir")
Changing current local directory to C:\MyDir

GETFILE("/ALARM/*.*")
CWD /ALARM/
200 directory changed to /ALARM/
PWD
257 "/ALARM/"
PASV
227 Entering Passive Mode (10,0,0,120,192,34)
Opening data connection to 10.0.0.120 Port: 49186
LIST
125 Data connection already open;transfer starting.
186 bytes transferred. (1.93 KB/s) (94 ms)
226 Transfer OK, Closing connection
CWD /
200 directory changed to /
PWD
257 "/"

GETFILE("/SAMP01/*.*")
CWD /SAMP01/
200 directory changed to /SAMP01/
PWD
257 "/SAMP01/"
PASV
227 Entering Passive Mode (10,0,0,120,192,35)
Opening data connection to 10.0.0.120 Port: 49187
LIST
125 Data connection already open;transfer starting.
137 bytes transferred. (1.71 KB/s) (78 ms)
226 Transfer OK, Closing connection
CWD /
200 directory changed to /
PWD
257 "/"

CLOSEHOST
QUIT
221 Bye
Client closed the connection.
Disconnected.
Any ideas, if I can get this working I’ll be very happy
Hello,

It seems that for some reason ScriptFTP does not understand the file listing that the FTP server is sending. Do you know what is the FTP server software that runs on 10.0.0.120? That would be very helpful.
TheFTP server is in an Industrial touch screen, A proface GP3000 unit,

I run an FTP Client plugin in Altap salamander and it has no problems, very strange.

I'll keep at it and let you konw if I find anything
Thanks for the info Christopher.
I'll PM you
Got it Christopher. We will continue this conversation in private to not disclose any private information.
An update from the conversation we had:

I have found that the FTP server on that machine does not follow the standard, at least when showing file listings. Take a look at the following:

C:\Users\Carlos>ftp xx.xx.xx.xx
Connected to xx.xx.xx.xx.
220 Service ready
User (xx.xx.xx.xx:(none)): test
230 User logged in
ftp> test
Invalid command.
ftp> dir
200 Command OK
150 Here it comes...
02-18-11 02:25PM <DIR> ALARM
02-18-11 02:52PM <DIR> SAMP01

226 Transfer OK, Closing connection
ftp: 93 bytes received in 0,00Seconds 93,00Kbytes/sec.
ftp> ls
200 Command OK
150 Here it comes...
226 Transfer OK, Closing connection
ftp>


It shows a DOS-like file listing when using "dir" and an empty listing for a "list" request. DOS-like listings are not the way the listings should be provided and also report nothing when "ls" is used is also wrong, as the current directory is not empty.

Tried also with FileZilla and got the same result. I do not know why the FTP plugin in Altap salamander works, it seems that it accepts wrong formatted directory listings...

I think there is not much to do from the ScriptFTP side. I am sorry for that, try (if possible) updating the FTP server software, may be they have fixed it.
another update. Chris was finally able to download the files using their name directly in GETFILE:

[scriptftp="download.ftp"]# Connect to FTP server
OPENHOST("xx.xx.xx.xx","xxxx","xxxx")

# Go to C:\MyDir
LOCALCHDIR("C:\MyDir")

# Get the named files in the FTP server
GETFILE("/ALARM/Z100000.csv")
GETFILE("/SAMP01/SA00000.csv")

# Transfer finished, close the connection
CLOSEHOST[/ScriptFTP]