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 noticed that my sript will not download file if they do not have file extensions. Is there a way to make it do that?

[scriptftp="my_transfer.ftp"]:connect
# More script samples at http://www.ScriptFTP.com/examples.php
# Online scripting guide at http://www.ScriptFTP.com/reference.php
# Free technical support at http://www.ScriptFTP.com/contact.php
#
# Remember to save the changes before clicking run on the ScriptFTP window.

# Connect to FTP server
OPENHOST("216.121.2.44","****","*****")
SETPASSIVE(DISABLED)


# Download the new or modified JPG files from the FTP site
$result=SYNC("d:\webservers\db_backups","/",DOWNLOAD,SUBDIRS,"*.*")


# Check if $result is different from "OK"
IF($result!="OK")
PRINT("Cannot complete the synchronization! Trying again.")
GOTO :connect
END IF

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

[scriptftp="fixed.ftp"]$result=SYNC("d:\webservers\db_backups","/",DOWNLOAD,SUBDIRS,"*")[/ScriptFTP]

Note that I have changed *.* to *

"*.*" means "any file with an extension"

"*" means "any file"
duh, I should have known that.. thanks!!