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
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| objFTP | True | expression | objFTP | Refers to the FTP connection object returned by the "connect to FTP server" command |
| sRemotefile | True | string | "" | Specified file path in FTP remote directory |
| sLocalpath | True | path | '''C:\Users''' | Save to local folder path |
return
filePath,The variable used to save the output of the command.
Demo