; The following example demonstrates how to automate FTP uploading using the ; OS's built-in FTP command. This script has been tested on Windows XP and 98se. FTPCommandFile = %A_ScriptDir%\FTPCommands.txt FTPLogFile = %A_ScriptDir%\FTPLog.txt FileDelete %FTPCommandFile% ; In case previous run was terminated prematurely. FileAppend, ( open host.domain.com username password binary cd htdocs put %VarContainingNameOfTargetFile% delete SomeOtherFile.htm rename OldFileName.htm NewFileName.htm ls -l quit ), %FTPCommandFile% RunWait %comspec% /c "ftp.exe" -s:"%FTPCommandFile%" >"%FTPLogFile%" FileDelete %FTPCommandFile% ; Delete for security reasons. Run %FTPLogFile% ; Display the log for review.
Self-contained script for FTP uploading
Started by
Chris
, Jul 19 2005 02:40 AM
1 reply to this topic
Here is a simple script to automate FTP uploading, downloading, and other actions. I think something like this has been posted before, but this one uses a continuation section to make it easier to visualize and maintain the commands.
#1
-
Posted 19 July 2005 - 02:40 AM
Thanks Chris . That will come in handy.
:shock: No full-blown Client version with ListView controls :?: (Just kidding :lol: )
:shock: No full-blown Client version with ListView controls :?: (Just kidding :lol: )
#2
-
Posted 19 July 2005 - 03:51 AM