Skip to main content

Download-File

Command Description

Download the specified single file from the remote directory of the FTP server to the local folder. If there is a file of the same name it will be overwritten directly

Command Prototype

filePath = FTP.DownloadFile(objFTP,sRemotefile,sLocalpath)

Parameter Description

ParameterRequiredTypeDefaultDescription
objFTPTrueexpressionobjFTPRefers to the FTP connection object returned by the "connect to FTP server" command
sRemotefileTruestring""Specified file path in FTP remote directory
sLocalpathTruepath'''C:\Users'''Save to local folder path

return

filePath,The variable used to save the output of the command.

Demo