Home Page
        Orders     Downloads     Support     Contact     Deutsch
ZOC Terminal is a professional SSH Client and Terminal Emulator for Windows and macOS.
PyroBatchFTP Online Help Topic:

Script Commands → Get

Get <remote filename or filename pattern> [, <local filename>]

 

Transfer the file <remote filename> from the current directory on the remote computer to the current directory of the local computer and store it under the name <local filename> (or under <remote filename> if <local filename> is omitted).

The local file name parameter is only valid, if the first parameter does not contain a pattern, otherwise please check the ForEach command.

Files are transferred between the current local and remote directories, so you probably will need LocalChDir and RemoteChDir commands before actually starting the transfer.

If you use Get with a file pattern, the command supports the -o, -y and -d parameters to select files based on date/time as described with the GetSync command.

If the file already exists on the local machine, the file will be overwritten with the new version.

 

See also: GetSync, GetDir, Put, ForEach, filename/foldername patterns, FtpMode command

 

Examples:

Get "access.log"

Get "sales.dat", "joeserver_sales.dat"

Get "today.log", "log$(year)$(month)$(day).log" (see Macros)

Get "[*; ~*.tmp]" (get all files except tmp files, see filename/foldername patterns)

Get -d0 "*.dat" (get all *.dat files that have a file date of today)

 
← Back to Script Commands

 

Downloads
Orders
Contact
Support
Terms of Use
Privacy Policy
pixel