-
-
Notifications
You must be signed in to change notification settings - Fork 658
Powershell
Robinicks edited this page Feb 3, 2020
·
2 revisions
You can use FluentFTP to transfer files to your FTP servers from your Powershell scripts. To get started:
- Download all the files in the Powershell folder in this repo.
- Place the contents into
C:\Scripts
or any folder of your choice. - Run this in Powershell to make the FluentFTP functions usable:
>. C:\Scripts\FluentFTP.ps1 #Makes functions callable from PowerShell scripts
- Run the commands you need! (Example commands are given below)
> Show-FtpFile -Site ftp.mysite.com -User bob -Password secure -FtpDirectory pub -FtpFileName "text*"
> Rename-File -Site ftp.mysite.com -User bob -Password secure -FtpDirectory pub -oldName "Readme.txt -newName Readme.done"
> Send-FtpFile -Site ftp.mysite.com -User bob -Password secure -FtpDirectory pub -fileName "Read*"
> Get-FtpFile -Site ftp.mysite.com -User bob -Password secure -FtpDirectory pub -ftpfileName "Read*"
> Remove-FtpFile -Site ftp.mysite.com -User bob -Password secure -FtpDirectory pub -ftpfileName "Read*"
Help on each command can be printed by running these commands in Powershell:
> get-help -full Show-FtpFile
> get-help -full Rename-FtpFile
> get-help -full Send-FtpFile
> get-help -full Get-FtpFile
> get-help -full Remove-FtpFile
- Auto Connection
- Auto Reconnection
- FTP(S) Connection
- FTP(S) Connection using GnuTLS
- FTPS Proxies
- Custom Servers
- Custom Commands
- v40 Migration Guide