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.
Running C:\vmtserve\downloadsync.ftp

VERBOSE(ON)
Verbose mode enabled

OPENHOST("ftp.vmtsoft.com","xxxx",******)
Connecting to ftp.vmtsoft.com
Resolving host name "ftp.vmtsoft.com"
Connecting to 72.167.131.160 Port: 21
Connected to ftp.vmtsoft.com.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 8 of 75 allowed.
220-Local time is now 19:18. Server port: 21.
220-This is a private system - No anonymous login
220 You will be disconnected after 3 minutes of inactivity.
USER xxxx
331 User xxxxr OK. Password required
PASS xxxxxxx
230-User xxxxx has group access to: 450
230 OK. Current directory is /
SYST
215 UNIX Type: L8
FEAT
211-Extensions supported:
EPRT
IDLE
MDTM
SIZE
REST STREAM
MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
MLSD
ESTP
PASV
EPSV
SPSV
ESTA
AUTH TLS
PBSZ
PROT
211 End.
Detected Server Software: PureFTPd
PWD
257 "/" is your current location
Connected.

CHDIR("/raysonly")

Changing current remote directory to /raysonly
CWD /raysonly
250 OK. Current directory is /raysonly
PWD
257 "/raysonly" is your current location

GETLIST(REMOTE_FILES,"sync*.xml")
Getting file listing of current remote directory
TYPE I
200 TYPE is now 8-bit binary
PASV
227 Entering Passive Mode (72,167,131,160,75,246)
Opening data connection to 72.167.131.160 Port: 19446
MLSD
150 Accepted data connection
701 bytes transferred. (6.22 KB/s) (110 ms)
226-ASCII
226-Options: -a -l
226 6 matches total
Found 1 file.

GETFILE("sync763676021386_kiosk1.xml")
Downloading................. sync763676021386_kiosk1.xml
SIZE sync763676021386_kiosk1.xml
213 4295
PASV
227 Entering Passive Mode (72,167,131,160,33,166)
Failed to open file 'sync763676021386_kiosk1.xml.part'.
Access is denied.
***** GETFILE Error #16024: Error reading local file.
CWD /raysonly
250 OK. Current directory is /raysonly
PWD
257 "/raysonly" is your current location
Hi,

The error you get seems to be related to write or read permissions in the directory where ScriptFTP is downloading files.

Try using LOCALCHDIR to set the current local working directory to a valid one before using GETFILE. This is where the files are downloaded.