FTPget.nlm was designed to Get files from a remote server and save them to a local machine.
Ftpget Txdot-HQ99/Sys:/Public/FileName.ext Data1:/Virus -v-e-d-r
Ftpget RemoteHost/PathToDesiredFile/FileName LocalPathToSaveTo -Commands
Breakdown of Commands:
- -e Copy (GET) file only if file does not already exist locally in the local Save to path.
- -v Verifies that the file saved on the local machine is same the as the one on remote host and not corrupt.
- -d Deletes the copied file from the remote host after it is copied to the local machine.
- -r Retry - Forces the program to retry instead of exiting on certain errors (Such as failing to log on to remote host).
- -Mirror Creates an exact replica of the directory on the remote host on the local machine (Only used with *.*)
- Ftpget was designed to work with wildcard characters. This will work in place of the filename (*.ext) as well as the file extension (filename.*), or both (*.*)
- The program utilizes a file located on the local machine in order to log on to the remote host. By reading from this file (mine is ftplogin.id) the program finds the username and password to use when logging on to a remote host. This can be easily modified and customized with a few changes to the .bas file.
- This program also creates a log file (mine is written to Sys:/Etc/ftp.log) but can also be modified via the .bas file. The software also creates a backup to the ftp.log file, called BackupFTP.log in the same path as the original log file. This Backup is created whenever the original ftp.log file exceeds 100000 bytes.
- The commands (see above) were designed to provide greater functionality to the software. These commands can be used separately or in combination. They are to be grouped together without spaces and separated by a "-", for example (-d-v-e-r-mirror). The order in which these commands are written makes no difference to the software.
- One thing to keep in mind when mirroring is that this function can only be used with (*.*) filenames, and it will create an exact replica of the desired directory on the local machine except that it will not copy subdirectories.