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.
Need help writing a script? Have any question about ScriptFTP?
Good Day! I am looking for a script that will monitor a folder for images that are transferred from a digital camera on a local computer, they will then transfer the files to the server computer and delete them from the local one.

Ideally, i would like to have an EXE file that can be set to run on startup of the machine, but if we get the EXE can we change the parameters such as ip address, remote folder, local folder, user and pass?
Take a look at this script.It then removes each file if the transfer is succesful. You would need to schedule this script to run, for example, every five minutes:

[scriptftp="upload_and_delete"]# Connect to the FTP server
OPENHOST("192.168.23.32","myusername","mypassword")

# Change working directory to C:\pim\outbox
LOCALCHDIR("C:\pim\outbox")

# Retrieve the C:\pim\outbox file listing
$result=GETLIST($list,LOCAL_FILES,"*.xml")

# If GETLIST failed stop the script
IF($result!="OK")
STOP
END IF

# For each file in $list...
FOREACH $item IN $list
# Upload the file
$result=PUTFILE($item)
# If the file has been succesfully uploaded
# delete the local copy of the file
IF($result=="OK")
EXEC("del ".$item)
END IF
END FOREACH


CLOSEHOST[/ScriptFTP]

Regarding to the EXE file I guess you refer to the script to EXE conversion service we offer.
http://www.scriptftp.com/reference.php?go=topic610

In that case note that you can still pass parameters (ip address, remote folder or anything you need) from the command line. Then, within the EXE, they are retrieved as usual with the GETPARAM script command.

GETPARAM information and examples here:
http://www.scriptftp.com/reference.php?go=topic153