FileWatcher - Script for FTP

Discuss our other products here. Get help with installation and running, notify us of bugs, request new features and enhancements.

Moderators: DataMystic Support, Moderators

User avatar
DataMystic Support
Site Admin
Posts: 2154
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

FileWatcher - Script for FTP

Postby DataMystic Support » Mon Sep 10, 2012 12:40 pm

FileZilla does not support sending files via the command line – it can only open the GUI at a given domain.

Please use standard FTP supplied with Windows using a batch file (ftp.bat, called by FileWatcher) and a script (ftp_script.txt)

Set Action to ftp.bat. The parameters are irrelevant, as standard FTP can't be told exactly which files to transfer (you could try a commercial client). Since all files must be transferred, you must delete them or move them out of the way after FTP to prevent them being processed on the next run.

ftp.bat

Code: Select all

@echo off
Echo Running FTP
ftp -i -n -s:ftp_script.txt hostname
echo Now delete or move local files so they can't be transferred again
pause


ftp_script.txt:

Code: Select all

username
password
lcd <your local folder>
cd <your remote folder>
mput *.*
quit


For FTP command line reference:

Code: Select all

  -i              Turns off interactive prompting during multiple file
                  transfers.
  -s:filename     Specifies a text file containing FTP commands; the
                  commands will automatically run after FTP starts.
  host            Specifies the host name or IP address of the remote
                  host to connect to.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

Return to “FileWatcher, DirDate and other Support”

Who is online

Users browsing this forum: No registered users and 3 guests