ZOC Terminal is a professional SSH Client and Terminal Emulator for Windows and macOS.
PyroBatchFTP Online Help Topic:

Scripting Methods → Script Files

The most easy and common way to automate file transfers is to put the script commands that control the transfer into a file and tell PyroBatchFTP to execute the commands one by one from this file. This can be done via the Command Line Parameters or from the program's pulldown menu or toolbar. PyroBatchFTP will then show the executed commands and their results in it's main window and will log them to file.

For details sample scripts, details and explanation please read script commands, log file and the file MANUAL.DOC in the PyroTrans directory (MANUAL.DOC is not available for PyroTransFTP).

 

: Example

 

// terminate Pyrobatch after we have finished
TerminateAfterScript 1
Milestone FILENAME "milestones.log"
    
// Retry 3 times with a one minute delay
// (applies to the @Connect commands)
SetRetry 3, 60
    
// connect to server 1
OnError SkipTo NextServer
@Connect "ftp.site1.com", "joedoe", "secret"
    
// in case of error continue with disconnect
OnError SkipTo Logoff
    
// send our sales
LocalChDir "c:\uploads"
Put "sales.dat", "joesales.dat"
    
LocalChDir "c:\downloads"
Get "articles.dat"
    
:Logoff
Milestone "Server1"
-Disconnect
    
    
    
// connect to server 2
:NextServer
OnError Fail
@Connect "ftp.site2.com", "joedoe", "hidden"
    
// in case of error continue with disconnect
OnError SkipTo Logoff
    
// send our sales
LocalChDir "c:\uploads"
Put "sales.dat", "joesales.dat"
    
LocalChDir "c:\downloads"
Get "articles.dat"
    
:Logoff
Milestone "Server2"
-Disconnect
    
    
:Done
    

 
← Back to Scripting Methods