Intro

A PowerShell script to send files through ftp.

Code

###########################
# author : shebangthedolphins.net
# version : 1.0
# date : 2018.08
# role : Send FTP files
# other : 
# - Tested on Windows 2016 Server
# - Need to copy pscp.exe (https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html) to C:\Program Files (x86)\PSCP\
# updates :
#       - 1.X (x/x/xxxx) :    

& 'C:\Program Files (x86)\PSCP\pscp.exe' -hostkey af:a5:fa:4f:f3:af:f8:0d:85:4e:02:df:dd:76:6c:4a -batch -sftp -P 22 -pw FTPpassword \\source\files.csv FTPlogin@ftpserver:/dst/
Licence Creative Commons
This websitehttp://shebangthedolphins.net is licensed to the public under a licence Creative Commons Attribution licence.
Contact :